78% postscript

Code Review | Postscript

WordPress plugin Postscript scored 78% from 54 tests.

About plugin

  • Plugin page: postscript
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9.2
  • WordPress version: 6.3.1
  • First release: Jun 20, 2016
  • Latest release: Feb 21, 2018
  • Number of updates: 3
  • Update frequency: every 200.0 days
  • Top authors: hearvox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,338 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼0.09ms] Passed 4 tests

An overview of server-side resources used by Postscript
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0740.56 ▼0.57
Dashboard /wp-admin3.36 ▲0.0546.91 ▼3.07
Posts /wp-admin/edit.php3.41 ▲0.0548.35 ▲0.81
Add New Post /wp-admin/post-new.php5.94 ▲0.0599.58 ▲9.85
Media Library /wp-admin/upload.php3.28 ▲0.0536.51 ▲2.45
Postscript /wp-admin/options-general.php?page=postscript3.9036.72

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
postscript
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Postscript
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.18 ▼1.191.94 ▼0.0641.72 ▼11.79
Dashboard /wp-admin2,213 ▲255.88 ▼0.00105.89 ▼8.9640.98 ▼7.25
Posts /wp-admin/edit.php2,072 ▼142.01 ▼0.0438.77 ▲4.3835.41 ▼1.74
Add New Post /wp-admin/post-new.php6,493 ▲4,97420.67 ▼2.63896.29 ▲230.6365.98 ▲8.07
Media Library /wp-admin/upload.php1,395 ▲74.21 ▼0.0895.64 ▼10.4742.77 ▼4.65
Postscript /wp-admin/options-general.php?page=postscript2,5952.0323.1936.79

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=postscript
    • > Deprecated in wp-content/plugins/postscript/includes/admin-options.php+801
    implode(): Passing glue string after array is deprecated. Swap the parameters

SRP 50% from 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
Please take a closer look at the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/postscript/includes/admin-options.php:35
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/postscript/includes/functions.php:275
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/postscript/includes/enqueue-scripts.php:47
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/postscript/includes/meta-box.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: javascript, class, style, css, stylesheet...

postscript/postscript.php 92% from 13 tests

The entry point to "Postscript" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 345 characters long)

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
No dangerous file extensions were detected1,115 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP72517771,115

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions56
▷ Named functions56100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
4 compressed PNG files occupy 0.13MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-4.png17.35KB16.40KB▼ 5.47%
assets/screenshot-1.png30.88KB30.05KB▼ 2.70%
assets/screenshot-2.png38.94KB37.76KB▼ 3.02%
assets/screenshot-3.png49.75KB48.92KB▼ 1.68%