84% press-this-extended

Code Review | Press This Extended

WordPress plugin Press This Extended scored84%from 54 tests.

About plugin

  • Plugin page: press-this-extended
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-6.2
  • WordPress version: 6.3.1
  • First release: Mar 6, 2015
  • Latest release: Jun 28, 2023
  • Number of updates: 19
  • Update frequency: every 159.8 days
  • Top authors: kraftbj (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /6,990 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼6.03ms] Passed 4 tests

Analyzing server-side resources used by Press This Extended
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.19 ▲0.52
Dashboard /wp-admin3.40 ▲0.0650.93 ▼8.41
Posts /wp-admin/edit.php3.52 ▲0.1648.13 ▼0.53
Add New Post /wp-admin/post-new.php5.98 ▲0.1082.85 ▼15.68
Media Library /wp-admin/upload.php3.32 ▲0.1041.85 ▲6.44

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
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Press This Extended
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.24 ▼0.051.75 ▼0.1743.51 ▲0.12
Dashboard /wp-admin2,198 ▲185.64 ▼0.0190.11 ▲4.5341.52 ▲0.69
Posts /wp-admin/edit.php2,100 ▲181.98 ▼0.0133.28 ▼1.9535.30 ▼0.18
Add New Post /wp-admin/post-new.php1,526 ▼223.23 ▲0.04659.71 ▲45.4556.55 ▲3.83
Media Library /wp-admin/upload.php1,400 ▲34.21 ▼0.03111.81 ▲11.6147.07 ▲1.33

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • 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 | 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
  • 1× 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/press-this-extended/press-this-extended.php:49

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: press this

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

The primary PHP file in "Press This Extended" version 1.1.0 is used by WordPress to initiate all plugin functionality
77 characters long description:
Provides options for extending and modifying the Press This feature (WP 4.2+)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected204 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP156205204

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity1.79
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected