10% simple-post-box

Code Review | Simple Post Box

WordPress plugin Simple Post Box scored10%from 54 tests.

About plugin

  • Plugin page: simple-post-box
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.2-3.2
  • WordPress version: 6.3.1
  • First release: Apr 1, 2013
  • Latest release: Apr 2, 2013
  • Number of updates: 9
  • Update frequency: every 0.6 days
  • Top authors: jandbond (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /954 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/simple-post-box/simplepost-box.php+15
    Undefined variable: wp_version

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

This is a short check of server-side resources used by Simple Post Box
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.0160.76 ▲11.41
Dashboard /wp-admin3.57 ▲0.0152.90 ▼3.01
Posts /wp-admin/edit.php3.69 ▲0.0148.59 ▼2.31
Add New Post /wp-admin/post-new.php6.16 ▲0.0186.19 ▼10.44
Media Library /wp-admin/upload.php3.50 ▲0.0137.44 ▼2.58

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

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

Browser metrics Passed 4 tests

Simple Post Box: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,892 ▲14213.93 ▼0.308.62 ▲6.9042.74 ▼5.82
Dashboard /wp-admin2,195 ▲185.65 ▲0.0590.72 ▼8.6839.34 ▼6.42
Posts /wp-admin/edit.php2,097 ▼32.04 ▼0.0135.06 ▼3.1932.34 ▼6.92
Add New Post /wp-admin/post-new.php1,526 ▼1917.78 ▼5.52699.40 ▼54.0959.91 ▼4.33
Media Library /wp-admin/upload.php1,400 ▼04.21 ▼0.03104.18 ▼7.2443.86 ▼3.40

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/simple-post-box/simplepost-box.php:18
    • > PHP Notice
      Undefined variable: wp_version in wp-content/plugins/simple-post-box/simplepost-box.php on line 15

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 83% from 29 tests

readme.txt 81% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === simple-post-box === )
  • Donate link: Please fix this invalid url: ""
  • Screenshots: Add an image for screenshot #2 (screenshot-2.png)
The official readme.txt is a good inspiration

simple-post-box/simplepost-box.php 85% from 13 tests

The primary PHP file in "Simple Post Box" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 250 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("simple-post-box.php" instead of "simplepost-box.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
There were no executable files found in this plugin110 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1101253
CSS15031
JavaScript13026

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
Functions4
▷ Named functions4100.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/stock_post.png2.73KB2.10KB▼ 23.08%
img/box.png4.47KB3.41KB▼ 23.79%