89% instapunchout

Code Review | InstaPunchout

WordPress plugin InstaPunchout scored89%from 54 tests.

About plugin

  • Plugin page: instapunchout
  • Plugin version: 1.0.49
  • PHP compatiblity: 5.7+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 17, 2022
  • Latest release: Oct 30, 2023
  • Number of updates: 55
  • Update frequency: every 10.8 days
  • Top authors: instapunchout (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /2,855 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by InstaPunchout
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0936.03 ▼6.75
Dashboard /wp-admin3.40 ▲0.0542.99 ▼19.41
Posts /wp-admin/edit.php3.51 ▲0.1546.80 ▲4.23
Add New Post /wp-admin/post-new.php5.98 ▲0.0991.08 ▼12.51
Media Library /wp-admin/upload.php3.32 ▲0.0935.01 ▼1.63

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

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

Browser metrics Passed 4 tests

InstaPunchout: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.35 ▲0.001.50 ▼0.4438.63 ▼3.99
Dashboard /wp-admin2,198 ▲185.61 ▼0.0590.89 ▼1.1441.04 ▲6.05
Posts /wp-admin/edit.php2,103 ▲31.98 ▼0.0239.51 ▲0.4935.78 ▼4.48
Add New Post /wp-admin/post-new.php1,526 ▼223.39 ▲0.16633.05 ▼2.5150.71 ▲1.27
Media Library /wp-admin/upload.php1,394 ▼64.15 ▼0.0295.91 ▼3.1440.10 ▼2.19

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 75% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Requires at least: The plugin version is formatted incorrectly
  • Screenshots: Add a description for screenshot #1 in instapunchout/assets to your readme.txt
  • Contributors: Contributors not specified
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can take inspiration from this readme.txt

instapunchout/instapunchout.php Passed 13 tests

The main PHP file in "InstaPunchout" ver. 1.0.49 adds more information about the plugin and also serves as the entry point for this plugin
62 characters long description:
This is the punchout plugin which is created by InstaPunchout.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin543 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP19337543

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity61.00
▷ Minimum class complexity61.00
▷ Maximum class complexity61.00
Average method complexity61.00
▷ Minimum method complexity61.00
▷ Maximum method complexity61.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.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 are no PNG files in this plugin