94% subcontent

Code Review | Subtitle

WordPress plugin Subtitle scored 94% from 53 tests.

About plugin

  • Plugin page: subcontent
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-3.9.1
  • WordPress version: 5.8.1
  • First release: May 2, 2013
  • Latest release: Jun 30, 2014
  • Number of updates: 5
  • Update frequency: every 84.8 days
  • Top authors: ShinichiN (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 877 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼267.42ms] Passed 4 tests

Server-side resources used by Subtitle
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0233.69 ▲7.86
Dashboard /wp-admin3.07 ▲0.0242.60 ▲7.48
Posts /wp-admin/edit.php3.12 ▲0.0242.44 ▼5.85
Add New Post /wp-admin/post-new.php5.44 ▲0.0192.42 ▼1,065.56
Media Library /wp-admin/upload.php3.01 ▲0.0133.13 ▼5.75

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Subtitle: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,674 ▲9215.80 ▲0.247.58 ▲0.3548.14 ▲3.02
Dashboard /wp-admin2,931 ▲815.88 ▲0.05135.94 ▲1.96113.59 ▲18.63
Posts /wp-admin/edit.php2,706 ▼02.68 ▼0.0266.40 ▼3.2093.12 ▼0.74
Add New Post /wp-admin/post-new.php1,653 ▼018.56 ▼0.15350.37 ▼26.54108.45 ▼4.07
Media Library /wp-admin/upload.php1,775 ▲35.00 ▼0.02144.51 ▼15.68102.73 ▼12.88

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/subcontent/subcontent.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #1 (Another editor for subcontent appears!)
The official readme.txt is a good inspiration

subcontent/subcontent.php Passed 13 tests

The main PHP file in "Subtitle" ver. 0.2 adds more information about the plugin and also serves as the entry point for this plugin
75 characters long description:
This plugin adds another editor to your post/page/customposttype edit page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin71 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1201371

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected