89% simple-post-manager

Code Review | Simple Post Manager

WordPress plugin Simple Post Manager scored 89% from 54 tests.

About plugin

  • Plugin page: simple-post-manager
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5+
  • WordPress version: 6.3.1
  • First release: Jul 1, 2016
  • Latest release: Jul 12, 2016
  • Number of updates: 5
  • Update frequency: every 2.4 days
  • Top authors: ugcode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 949 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.67ms] Passed 4 tests

An overview of server-side resources used by Simple Post Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.37 ▼4.72
Dashboard /wp-admin3.32 ▲0.0246.55 ▼5.43
Posts /wp-admin/edit.php3.37 ▲0.0247.24 ▼2.60
Add New Post /wp-admin/post-new.php5.90 ▲0.0285.15 ▼1.93
Media Library /wp-admin/upload.php3.24 ▲0.0235.35 ▲0.43
Simple Post Manager /wp-admin/edit.php?page=spm_SimplePostManager3.2128.34

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Simple Post Manager: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.27 ▼1.162.04 ▲0.2840.74 ▼10.54
Dashboard /wp-admin2,207 ▲225.83 ▲0.9797.27 ▼16.5839.25 ▼1.98
Posts /wp-admin/edit.php2,096 ▲72.02 ▲0.0039.67 ▲1.2336.96 ▲2.62
Add New Post /wp-admin/post-new.php1,541 ▲2023.00 ▲0.06704.04 ▲31.8062.58 ▲3.79
Media Library /wp-admin/upload.php1,392 ▲74.16 ▼0.0495.33 ▼8.3543.01 ▼9.07
Simple Post Manager /wp-admin/edit.php?page=spm_SimplePostManager8072.0334.4627.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

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 on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Tested up to: Invalid version format
Please take inspiration from this readme.txt

simple-post-manager/Simple-Post-Manager.php 92% from 13 tests

The principal PHP file in "Simple Post Manager" v. 0.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("simple-post-manager.php" instead of "Simple-Post-Manager.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin78 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1211178

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.71
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin