10% press-this-reloaded

Code Review | Press This Reloaded

WordPress plugin Press This Reloaded scored10%from 54 tests.

About plugin

  • Plugin page: press-this-reloaded
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.5
  • WordPress version: 6.3.1
  • First release: Aug 20, 2010
  • Latest release: Apr 8, 2013
  • Number of updates: 17
  • Update frequency: every 57.2 days
  • Top authors: scribu (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /18,725 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/press-this-reloaded/press-this-reloaded.php+391
    Non-static method Press_This_Reloaded::init() should not be called statically

Server metrics [RAM: ▼1.85MB] [CPU: ▼57.34ms] Passed 4 tests

Analyzing server-side resources used by Press This Reloaded
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.314.55 ▼42.74
Dashboard /wp-admin2.17 ▼1.176.36 ▼53.98
Posts /wp-admin/edit.php2.17 ▼1.185.72 ▼41.00
Add New Post /wp-admin/post-new.php2.17 ▼3.725.60 ▼91.65
Media Library /wp-admin/upload.php2.17 ▼1.065.72 ▼28.70

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Press This Reloaded
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲313.92 ▼0.651.54 ▼0.4438.35 ▼4.93
Dashboard /wp-admin2,192 ▲125.51 ▼0.1782.26 ▼8.3938.37 ▲0.76
Posts /wp-admin/edit.php2,079 ▼211.98 ▼0.0535.44 ▼2.9934.00 ▲0.82
Add New Post /wp-admin/post-new.php1,529 ▲123.19 ▲0.19621.48 ▲8.6770.08 ▼5.56
Media Library /wp-admin/upload.php1,400 ▼04.21 ▼0.0498.70 ▼4.9340.04 ▼4.77

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/press-this-reloaded/press-this-reloaded.php+391
    Non-static method Press_This_Reloaded::init() should not be called statically
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/press-this-reloaded/press-this-reloaded.php:19

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 Passed 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
3 plugin tags: press-this, bookmarklet, pressthis

press-this-reloaded/press-this-reloaded.php Passed 13 tests

The main PHP file in "Press This Reloaded" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
49 characters long description:
Press This, using the regular Add New Post screen

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin199 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1298100
PHP18221499

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.30
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity3.10
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin