84% hide-text-shortcode

Code Review | Hide Text Shortcode

WordPress plugin Hide Text Shortcode scored84%from 54 tests.

About plugin

  • Plugin page: hide-text-shortcode
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.8.1
  • WordPress version: 6.3.1
  • First release: Jun 6, 2016
  • Latest release: Jun 16, 2016
  • Number of updates: 12
  • Update frequency: every 35.9 days
  • Top authors: biscia7 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /1,448 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼9.13ms] Passed 4 tests

This is a short check of server-side resources used by Hide Text Shortcode
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.50 ▼4.45
Dashboard /wp-admin3.31 ▲0.0045.31 ▼3.84
Posts /wp-admin/edit.php3.36 ▲0.0047.69 ▼2.61
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.58 ▼25.61
Media Library /wp-admin/upload.php3.23 ▲0.0036.37 ▲4.02

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Hide Text Shortcode
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.37 ▲0.171.95 ▲0.3640.20 ▲1.43
Dashboard /wp-admin2,198 ▲245.62 ▲0.1083.50 ▼2.2337.57 ▼5.06
Posts /wp-admin/edit.php2,100 ▼31.96 ▼0.0733.79 ▼5.2830.67 ▼6.38
Add New Post /wp-admin/post-new.php1,526 ▼523.22 ▲0.06697.85 ▲93.2554.30 ▼0.46
Media Library /wp-admin/upload.php1,403 ▲34.17 ▼0.05109.81 ▲15.8146.47 ▲4.65

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/hide-text-shortcode/hide_text_shortcode.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: javascript, shortcode, hide text

hide-text-shortcode/hide_text_shortcode.php 92% from 13 tests

Analyzing the main PHP file in "Hide Text Shortcode" version 1.1
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("hide-text-shortcode.php" instead of "hide_text_shortcode.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin25 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18825

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin