83% wp-cycle-plus-captions

Code Review | WP-Cycle Plus Captions

WordPress plugin WP-Cycle Plus Captions scored83%from 54 tests.

About plugin

  • Plugin page: wp-cycle-plus-cap...
  • Plugin version: 0.4.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4.1
  • WordPress version: 6.3.1
  • First release: Aug 10, 2012
  • Latest release: Feb 6, 2013
  • Number of updates: 42
  • Update frequency: every 4.3 days
  • Top authors: Tech-Squawkers (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /7,806 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
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.54ms] Passed 4 tests

Server-side resources used by WP-Cycle Plus Captions
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0634.65 ▼5.26
Dashboard /wp-admin3.37 ▲0.0645.18 ▼9.76
Posts /wp-admin/edit.php3.42 ▲0.0649.90 ▲1.47
Add New Post /wp-admin/post-new.php5.95 ▲0.0691.85 ▼4.26
Media Library /wp-admin/upload.php3.29 ▲0.0636.02 ▲1.14
WP-Cycle /wp-admin/upload.php?page=wp-cycle3.2634.85

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

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

Browser metrics Passed 4 tests

WP-Cycle Plus Captions: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,893 ▲15813.68 ▼0.686.34 ▲4.4640.64 ▼4.64
Dashboard /wp-admin2,207 ▲195.81 ▼0.05103.46 ▼15.9141.14 ▼7.32
Posts /wp-admin/edit.php2,093 ▲42.04 ▼0.0040.89 ▲4.0735.10 ▲0.21
Add New Post /wp-admin/post-new.php1,523 ▼1021.00 ▼2.02690.97 ▲12.7353.04 ▼1.51
Media Library /wp-admin/upload.php1,392 ▲14.17 ▼0.1295.79 ▼7.1643.70 ▼1.58
WP-Cycle /wp-admin/upload.php?page=wp-cycle1,0392.0329.1934.19

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

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/wp-cycle-plus-captions/wp-cycle.php:49

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

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === wp-cycle-plus-captions === )
You can take inspiration from this readme.txt

wp-cycle-plus-captions/wp-cycle.php 85% from 13 tests

This is the main PHP file of "WP-Cycle Plus Captions" version 0.4.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 146 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-cycle-plus-captions.php" instead of "wp-cycle.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
Success! There were no dangerous files found in this plugin341 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP198143339
JavaScript10192

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions17
▷ Named functions17100.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
There are no PNG files in this plugin