84% subtome

Code Review | SubToMe

WordPress plugin SubToMe scored84%from 54 tests.

About plugin

  • Plugin page: subtome
  • Plugin version: 1.5.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.1-6.3
  • WordPress version: 6.3.1
  • First release: Feb 17, 2013
  • Latest release: Sep 1, 2023
  • Number of updates: 37
  • Update frequency: every 104.0 days
  • Top authors: pfefferle (56.76%)julien51 (45.95%)

Code review

54 tests

User reviews

3 reviews

Install metrics

40+ active /5,448 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
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.29ms] Passed 4 tests

This is a short check of server-side resources used by SubToMe
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0845.45 ▲1.34
Dashboard /wp-admin3.38 ▲0.0350.52 ▼15.44
Posts /wp-admin/edit.php3.49 ▲0.1346.26 ▼0.45
Add New Post /wp-admin/post-new.php5.96 ▲0.0791.57 ▼6.59
Media Library /wp-admin/upload.php3.30 ▲0.0738.98 ▲3.18
SubToMe /wp-admin/options-general.php?page=subtome3.2636.70

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
widget_subtome
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for SubToMe
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.17 ▼1.411.75 ▼0.2743.63 ▼0.27
Dashboard /wp-admin2,210 ▲255.90 ▲0.00111.95 ▲3.2841.84 ▲0.51
Posts /wp-admin/edit.php2,090 ▼21.99 ▼0.0035.27 ▼3.1533.06 ▼1.42
Add New Post /wp-admin/post-new.php1,536 ▲1723.39 ▲0.24672.73 ▼44.7858.63 ▲0.55
Media Library /wp-admin/upload.php1,392 ▲44.18 ▲0.0397.78 ▼13.7343.02 ▼5.42
SubToMe /wp-admin/options-general.php?page=subtome9982.1925.9831.06

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_subtome
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/subtome/subtome.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (17 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

subtome/subtome.php 92% from 13 tests

The main PHP script in "SubToMe" version 1.5.6 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 166 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin365 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP153122205
SVG212160

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity9.00
▷ Minimum class complexity5.00
▷ Maximum class complexity13.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods1168.75%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/subtome-logo.png4.88KB1.10KB▼ 77.41%