89% vimeotheque-debug

Code Review | Vimeotheque Debug

WordPress plugin Vimeotheque Debug scored89%from 54 tests.

About plugin

  • Plugin page: vimeotheque-debug
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.8
  • WordPress version: 6.3.1
  • First release: Sep 16, 2020
  • Latest release: Jul 14, 2021
  • Number of updates: 7
  • Update frequency: every 43.1 days
  • Top authors: codeflavors (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /677 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

An overview of server-side resources used by Vimeotheque Debug
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.04 ▼6.57
Dashboard /wp-admin3.31 ▼0.0455.41 ▼9.57
Posts /wp-admin/edit.php3.36 ▲0.0047.68 ▼3.74
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.23 ▼18.74
Media Library /wp-admin/upload.php3.23 ▲0.0036.42 ▲1.58

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

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

Browser metrics Passed 4 tests

Vimeotheque Debug: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲5014.34 ▲0.042.17 ▲0.2440.97 ▼0.35
Dashboard /wp-admin2,202 ▲225.62 ▲0.0389.11 ▲0.5838.20 ▼6.15
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0739.64 ▼1.5538.69 ▲2.04
Add New Post /wp-admin/post-new.php1,535 ▲923.13 ▼0.47737.39 ▲31.9257.06 ▼8.24
Media Library /wp-admin/upload.php1,401 ▲14.17 ▼0.0698.72 ▼13.7045.15 ▲0.14

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 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 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
Congratulations! This plugin passed the SRP test

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: vimeotheque, debug

vimeotheque-debug/index.php 85% from 13 tests

The main PHP script in "Vimeotheque Debug" version 1.0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("vimeotheque-debug.php" instead of "index.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 148 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin291 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP575234288
CSS1003

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity5.50
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.90
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods20
▷ Static methods630.00%
▷ Public methods1260.00%
▷ Protected methods00.00%
▷ Private methods840.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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