84% cactus-info-slider

Code Review | Cactus Info Slider

WordPress plugin Cactus Info Slider scored84%from 54 tests.

About plugin

  • Plugin page: cactus-info-slider
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.1
  • WordPress version: 6.3.1
  • First release: May 29, 2015
  • Latest release: May 29, 2015
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: thehappycactus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,105 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 gracefully, with no errors

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

Analyzing server-side resources used by Cactus Info Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.39 ▲0.96
Dashboard /wp-admin3.31 ▲0.0150.62 ▼2.93
Posts /wp-admin/edit.php3.36 ▲0.0148.66 ▲1.04
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.05 ▼13.93
Media Library /wp-admin/upload.php3.24 ▲0.0136.04 ▼3.83

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Cactus Info Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,874 ▲11313.72 ▼0.849.11 ▲6.9743.46 ▼3.97
Dashboard /wp-admin2,195 ▲185.72 ▲0.0888.84 ▼5.8139.06 ▼5.19
Posts /wp-admin/edit.php2,100 ▼32.00 ▲0.0537.56 ▼4.5633.03 ▼7.37
Add New Post /wp-admin/post-new.php1,526 ▼222.97 ▲2.01670.72 ▼0.1756.75 ▼1.59
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.0698.36 ▼19.7642.86 ▼5.50

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 does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cactus-info-slider/info-slider.php:12

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: slider

cactus-info-slider/info-slider.php 85% from 13 tests

"Cactus Info Slider" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 209 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("cactus-info-slider.php" instead of "info-slider.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected74 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP161130
CSS15029
JavaScript24515

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected