84% cartmagnet-publisher-script

Code Review | CartMagnet Publisher Script

WordPress plugin CartMagnet Publisher Script scored84%from 54 tests.

About plugin

  • Plugin page: cartmagnet-publis...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Oct 5, 2014
  • Latest release: Mar 14, 2016
  • Number of updates: 9
  • Update frequency: every 58.5 days
  • Top authors: tbenshalom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /940 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.09ms] Passed 4 tests

A check of server-side resources used by CartMagnet Publisher Script
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.96 ▼4.09
Dashboard /wp-admin3.31 ▼0.0446.58 ▼20.56
Posts /wp-admin/edit.php3.36 ▲0.0050.16 ▲3.90
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.57 ▼17.14
Media Library /wp-admin/upload.php3.23 ▲0.0035.24 ▲1.44

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for CartMagnet Publisher Script
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,854 ▲10813.22 ▼1.161.86 ▲0.0637.49 ▼4.97
Dashboard /wp-admin2,206 ▲184.85 ▼1.02110.64 ▼9.9437.15 ▼7.23
Posts /wp-admin/edit.php2,089 ▲32.05 ▲0.0341.27 ▲5.1035.23 ▲3.36
Add New Post /wp-admin/post-new.php1,542 ▲1918.77 ▼4.55654.50 ▼35.1558.29 ▲2.24
Media Library /wp-admin/upload.php1,382 ▼64.17 ▼0.0198.10 ▼13.6643.43 ▼1.94

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

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
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cartmagnet-publisher-script/cartmagnet-publisher-script.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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:
  • Tags: You are using too many tags: 37 tag instead of maximum 10
You can take inspiration from this readme.txt

cartmagnet-publisher-script/cartmagnet-publisher-script.php Passed 13 tests

"CartMagnet Publisher Script" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
65 characters long description:
The plugin embedding cartmagnet script for publisher on each page

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
No dangerous file extensions were detected6 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18186

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin