84% kopa-xmax-toolkit

Code Review | Kopa Xmax Toolkit

WordPress plugin Kopa Xmax Toolkit scored84%from 54 tests.

About plugin

  • Plugin page: kopa-xmax-toolkit
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.9.1
  • WordPress version: 6.3.1
  • First release: Oct 23, 2014
  • Latest release: Oct 23, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: kopatheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /933 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼8.72ms] Passed 4 tests

A check of server-side resources used by Kopa Xmax Toolkit
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.10 ▼4.15
Dashboard /wp-admin3.31 ▼0.0349.92 ▼17.57
Posts /wp-admin/edit.php3.36 ▲0.0150.46 ▼4.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.16 ▼9.11
Media Library /wp-admin/upload.php3.23 ▲0.0141.97 ▲4.65

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Kopa Xmax Toolkit
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.28 ▼0.092.03 ▼0.1344.30 ▼0.11
Dashboard /wp-admin2,189 ▲155.54 ▼0.1387.05 ▼9.6140.37 ▼1.13
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0336.87 ▼6.0334.57 ▼0.86
Add New Post /wp-admin/post-new.php1,526 ▼922.92 ▲4.79682.13 ▲39.0552.50 ▼17.49
Media Library /wp-admin/upload.php1,400 ▲64.14 ▼0.1197.60 ▼19.4542.86 ▼2.26

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/kopa-xmax-toolkit/shortcodes/system/home_url.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kopa-xmax-toolkit/kopa-shortcodes.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_shortcode() in wp-content/plugins/kopa-xmax-toolkit/shortcodes/gallery.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/kopa-xmax-toolkit/shortcodes/visual/icons.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kopa-xmax-toolkit/kopa-xmax-toolkit.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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
No tags were detected

kopa-xmax-toolkit/kopa-xmax-toolkit.php Passed 13 tests

This is the main PHP file of "Kopa Xmax Toolkit" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
59 characters long description:
A specific plugin use in Xmax Theme to generate shortcodes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin504 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP513447504

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions30
▷ Named functions30100.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 images were found in this plugin