84% epitome-subtitle

Code Review | Epitome Subtitle

WordPress plugin Epitome Subtitle scored 84% from 54 tests.

About plugin

  • Plugin page: epitome-subtitle
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.3
  • WordPress version: 6.3.1
  • First release: Dec 4, 2015
  • Latest release: Dec 3, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: freddessaint2 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 617 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼6.60ms] Passed 4 tests

Analyzing server-side resources used by Epitome Subtitle
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.13 ▼3.87
Dashboard /wp-admin3.34 ▲0.0445.27 ▼4.17
Posts /wp-admin/edit.php3.39 ▲0.0444.20 ▼3.37
Add New Post /wp-admin/post-new.php5.94 ▲0.0688.68 ▼14.98
Media Library /wp-admin/upload.php3.27 ▲0.0437.17 ▲3.31

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Epitome Subtitle
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.22 ▼1.091.70 ▼0.0239.25 ▼6.80
Dashboard /wp-admin2,209 ▲175.88 ▲0.9597.78 ▼14.6339.52 ▼2.88
Posts /wp-admin/edit.php2,086 ▼32.05 ▲0.0538.49 ▲2.6035.90 ▲4.79
Add New Post /wp-admin/post-new.php1,527 ▼622.79 ▼0.23584.42 ▼20.5456.45 ▼20.74
Media Library /wp-admin/upload.php1,388 ▲34.27 ▲0.0495.94 ▼13.9141.47 ▼8.08

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/epitome-subtitle/epitome-subtitle.php:20

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: title, subtitle

epitome-subtitle/epitome-subtitle.php Passed 13 tests

The entry point to "Epitome Subtitle" version 1.0 is a PHP file that has certain tags in its header comment area
97 characters long description:
Add a subtitle to regular post and static you display with a set of functions from your template.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected266 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP240193153
CSS171045
JavaScript1112545
Markdown215023

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods14
▷ Static methods321.43%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin