89% overwrite-it

Code Review | OverWrite It

WordPress plugin OverWrite It scored89%from 54 tests.

About plugin

  • Plugin page: overwrite-it
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-4.9.8
  • WordPress version: 6.3.1
  • First release: Jun 2, 2016
  • Latest release: Sep 20, 2018
  • Number of updates: 3
  • Update frequency: every 280.0 days
  • Top authors: trkr (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /1,103 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by OverWrite It
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.54 ▼6.58
Dashboard /wp-admin3.33 ▲0.0255.07 ▲7.48
Posts /wp-admin/edit.php3.38 ▲0.0249.90 ▼2.66
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.09 ▼12.51
Media Library /wp-admin/upload.php3.25 ▲0.0233.12 ▼4.68

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for OverWrite It
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.20 ▼0.971.82 ▼0.1641.25 ▼0.09
Dashboard /wp-admin2,209 ▲184.83 ▼0.0298.39 ▼8.0041.24 ▼1.14
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0335.34 ▼4.0231.84 ▼3.02
Add New Post /wp-admin/post-new.php1,519 ▼2323.14 ▲5.01606.20 ▼42.9545.32 ▼1.88
Media Library /wp-admin/upload.php1,396 ▲114.30 ▲0.1097.98 ▼5.2543.99 ▲0.98

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

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 no errors were found, this is by no means 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 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
You can take inspiration from this readme.txt

overwrite-it/bootstrap.php 92% from 13 tests

The primary PHP file in "OverWrite It" version 1.0.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("overwrite-it.php" instead of "bootstrap.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected133 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2417795
PO File16638

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods450.00%
▷ Protected methods112.50%
▷ Private methods337.50%
Functions0
▷ Named functions00.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