84% stop-write

Code Review | Stop Write

WordPress plugin Stop Write scored84%from 54 tests.

About plugin

  • Plugin page: stop-write
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.6
  • WordPress version: 6.3.1
  • First release: Apr 24, 2013
  • Latest release: Nov 26, 2020
  • Number of updates: 8
  • Update frequency: every 346.6 days
  • Top authors: MMDeveloper (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /2,192 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.01MB] [CPU: ▼10.12ms] Passed 4 tests

A check of server-side resources used by Stop Write
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0232.43 ▼6.48
Dashboard /wp-admin3.33 ▼0.0242.17 ▼18.70
Posts /wp-admin/edit.php3.38 ▲0.0242.70 ▼4.58
Add New Post /wp-admin/post-new.php5.91 ▲0.0281.01 ▼10.73
Media Library /wp-admin/upload.php3.25 ▲0.0236.69 ▲3.85

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

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

Browser metrics Passed 4 tests

Stop Write: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.35 ▼0.881.71 ▼0.1138.94 ▼4.75
Dashboard /wp-admin2,222 ▲314.87 ▼1.03113.24 ▲6.0743.05 ▲0.46
Posts /wp-admin/edit.php2,105 ▲132.04 ▲0.0434.54 ▼1.2929.60 ▼6.81
Add New Post /wp-admin/post-new.php1,527 ▼1117.63 ▼0.45653.43 ▲51.8163.01 ▲2.50
Media Library /wp-admin/upload.php1,404 ▲164.26 ▲0.0395.21 ▼4.1542.32 ▼6.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stop-write/stop-write.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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:
  • Donate link: Invalid URI found ("")
You can take inspiration from this readme.txt

stop-write/stop-write.php 92% from 13 tests

The main PHP script in "Stop Write" version 2.0 is automatically included on every request by WordPress
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 446 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected110 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12120110

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
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%
Functions5
▷ Named functions5100.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
There were not PNG files found in your plugin