84% cpt-magic-tool-addons-for-elementor

Code Review | Elementor CPT Magic Tool

WordPress plugin Elementor CPT Magic Tool scored84%from 54 tests.

About plugin

  • Plugin page: cpt-magic-tool-ad...
  • Plugin version: 1.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.1
  • WordPress version: 6.3.1
  • First release: Sep 11, 2019
  • Latest release: Aug 22, 2022
  • Number of updates: 11
  • Update frequency: every 97.9 days
  • Top authors: muzammilmotiwala20 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

90+ active /1,521 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
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Elementor CPT Magic Tool
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.44 ▲2.02
Dashboard /wp-admin3.32 ▼0.0251.20 ▼14.64
Posts /wp-admin/edit.php3.37 ▲0.0248.83 ▲0.23
Add New Post /wp-admin/post-new.php5.90 ▲0.0299.25 ▲5.32
Media Library /wp-admin/upload.php3.25 ▲0.0237.50 ▲0.51

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Elementor CPT Magic Tool
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8514.15 ▼0.282.16 ▲0.2845.07 ▼1.92
Dashboard /wp-admin2,215 ▲375.64 ▼0.0493.43 ▼19.4341.25 ▼0.86
Posts /wp-admin/edit.php2,117 ▲141.99 ▲0.0140.76 ▲4.1137.57 ▼0.47
Add New Post /wp-admin/post-new.php1,538 ▲1123.06 ▲0.02661.05 ▼44.2953.40 ▼8.79
Media Library /wp-admin/upload.php1,414 ▲144.26 ▲0.06101.01 ▼1.6846.10 ▲0.68

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/cpt-magic-tool-addons-for-elementor/widgets/widget1.php:14

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 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: elementor addons, elementor, pods, elementor-addon, acf

cpt-magic-tool-addons-for-elementor/cpt-magic-tool.php 85% from 13 tests

"Elementor CPT Magic Tool" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Name the main plugin file the same as the plugin slug ("cpt-magic-tool-addons-for-elementor.php" instead of "cpt-magic-tool.php")

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
No dangerous file extensions were detected479 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP387271479

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity8.50
▷ Minimum class complexity8.00
▷ Maximum class complexity9.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods14
▷ Static methods17.14%
▷ Public methods1285.71%
▷ Protected methods214.29%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin