73% coverflow-sdc

Code Review | Coverflow SDC

WordPress plugin Coverflow SDC scored73%from 54 tests.

About plugin

  • Plugin page: coverflow-sdc
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.0.0
  • WordPress version: 6.3.1
  • First release: Feb 12, 2017
  • Latest release: Feb 15, 2017
  • Number of updates: 2
  • Update frequency: every 3.0 days
  • Top authors: dewolfe001 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /602 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.76MB] [CPU: ▼53.51ms] Passed 4 tests

This is a short check of server-side resources used by Coverflow SDC
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.26 ▼1.245.37 ▼34.77
Dashboard /wp-admin2.28 ▼1.066.78 ▼48.81
Posts /wp-admin/edit.php2.28 ▼1.116.60 ▼47.56
Add New Post /wp-admin/post-new.php2.28 ▼3.648.71 ▼82.91
Media Library /wp-admin/upload.php2.28 ▼0.996.77 ▼32.79
Cloverflow Settings /wp-admin/options-general.php?page=cfsdc2.296.79

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Coverflow SDC
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.45 ▲0.071.79 ▼0.0742.30 ▼0.07
Dashboard /wp-admin2,199 ▲195.80 ▲0.1582.69 ▼4.6537.08 ▼3.33
Posts /wp-admin/edit.php2,104 ▲41.98 ▼0.0339.74 ▲3.0936.64 ▼1.14
Add New Post /wp-admin/post-new.php1,530 ▲423.24 ▼0.20614.65 ▼56.0053.03 ▼11.68
Media Library /wp-admin/upload.php1,407 ▲44.16 ▼0.05100.02 ▲3.6447.21 ▲0.75
Cloverflow Settings /wp-admin/options-general.php?page=cfsdc8591.9922.8229.25

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-includes/plugin.php+1006
    Undefined offset: 1
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=cfsdc
    • > Notice in wp-includes/plugin.php+1006
    Undefined offset: 1

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #1 (Coming soon) image required
You can take inspiration from this readme.txt

coverflow-sdc/coverflow_sdc.php 77% from 13 tests

The main PHP file in "Coverflow SDC" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path folder was not found ("/languages/")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("coverflow-sdc.php" instead of "coverflow_sdc.php")

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
Success! There were no dangerous files found in this plugin1,406 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP6160484570
JavaScript115662476
CSS22120360

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity13.60
▷ Minimum class complexity3.00
▷ Maximum class complexity39.00
Average method complexity2.24
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes360.00%
Methods51
▷ Static methods47.84%
▷ Public methods3874.51%
▷ Protected methods1019.61%
▷ Private methods35.88%
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