89% ssm-xtra-post-info

Code Review | SSM Xtra Post Info

WordPress plugin SSM Xtra Post Info scored89%from 54 tests.

About plugin

  • Plugin page: ssm-xtra-post-info
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 6, 2017
  • Latest release: Dec 8, 2018
  • Number of updates: 6
  • Update frequency: every 86.7 days
  • Top authors: bmeisler (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /840 total downloads

Benchmarks

Plugin footprint 83% from 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.00MB] [CPU: ▼5.71ms] Passed 4 tests

An overview of server-side resources used by SSM Xtra Post Info
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.11 ▲0.72
Dashboard /wp-admin3.31 ▲0.0044.28 ▼7.14
Posts /wp-admin/edit.php3.36 ▲0.0043.62 ▼4.47
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.95 ▼11.95
Media Library /wp-admin/upload.php3.23 ▲0.0034.42 ▲0.73

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by SSM Xtra Post Info
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.20 ▼1.091.90 ▼0.0839.58 ▼12.93
Dashboard /wp-admin2,206 ▲184.85 ▼0.02102.72 ▼2.7138.52 ▼0.44
Posts /wp-admin/edit.php2,089 ▲32.17 ▲0.1633.84 ▼4.3634.96 ▲1.40
Add New Post /wp-admin/post-new.php1,535 ▲1523.36 ▲0.24682.87 ▲20.9656.70 ▼1.42
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.0499.03 ▲4.0241.98 ▲0.25

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Requires at least: Version format is invalid
The official readme.txt might help

ssm-xtra-post-info/SSMXtraPostInfo.php 85% from 13 tests

The principal PHP file in "SSM Xtra Post Info" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 161 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ssm-xtra-post-info.php" instead of "SSMXtraPostInfo.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected55 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2143655

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods350.00%
▷ Public methods583.33%
▷ Protected methods00.00%
▷ Private methods116.67%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin