84% soundst-hidden-text

Code Review | Soundst Hidden Text

WordPress plugin Soundst Hidden Text scored84%from 54 tests.

About plugin

  • Plugin page: soundst-hidden-text
  • Plugin version: 0.0.12
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.1
  • WordPress version: 6.3.1
  • First release: Feb 6, 2013
  • Latest release: Feb 6, 2013
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: SoundStrategies (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /890 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.68MB] [CPU: ▼21.65ms] Passed 4 tests

An overview of server-side resources used by Soundst Hidden Text
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.42 ▼0.0527.46 ▼12.43
Dashboard /wp-admin3.34 ▲0.0448.76 ▼5.58
Posts /wp-admin/edit.php3.40 ▲0.0448.96 ▼1.41
Add New Post /wp-admin/post-new.php3.13 ▼2.7636.55 ▼67.18
Media Library /wp-admin/upload.php3.27 ▲0.0437.07 ▲2.83
Soundst Hidden Text /wp-admin/options-general.php?page=soundst_hidden_text_submenu_page3.2233.49

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
toggle_text_submenu_page

Browser metrics Passed 4 tests

An overview of browser requirements for Soundst Hidden Text
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,880 ▲11913.52 ▼1.078.54 ▲6.9648.26 ▲8.56
Dashboard /wp-admin2,201 ▲245.66 ▲0.0195.26 ▲0.7642.18 ▼1.37
Posts /wp-admin/edit.php2,106 ▲62.01 ▼0.0135.00 ▼4.6635.60 ▼2.15
Add New Post /wp-admin/post-new.php6,277 ▲4,74726.04 ▲2.71918.08 ▲319.7167.99 ▲15.65
Media Library /wp-admin/upload.php1,406 ▲94.25 ▲0.0696.94 ▲0.7441.11 ▼1.50
Soundst Hidden Text /wp-admin/options-general.php?page=soundst_hidden_text_submenu_page8722.0123.6725.82

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • toggle_text_submenu_page

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/soundst-hidden-text/hidden_text.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Please fix this invalid url: "None"
Please take inspiration from this readme.txt

soundst-hidden-text/hidden_text.php 92% from 13 tests

"Soundst Hidden Text" version 0.0.12's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("soundst-hidden-text.php" instead of "hidden_text.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin232 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP15611192
JavaScript11024
CSS12016

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin