84% cl-wp-info

Code Review | CL WP Info

WordPress plugin CL WP Info scored 84% from 54 tests.

About plugin

  • Plugin page: cl-wp-info
  • Plugin version: 1.4.17
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 13, 2017
  • Latest release: Sep 1, 2023
  • Number of updates: 20
  • Update frequency: every 107.7 days
  • Top authors: carloslongarela (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

70+ active / 1,852 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

This is a short check of server-side resources used by CL WP Info
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.25 ▲1.47
Dashboard /wp-admin3.32 ▲0.0251.07 ▲0.14
Posts /wp-admin/edit.php3.37 ▲0.0146.22 ▼0.93
Add New Post /wp-admin/post-new.php5.90 ▲0.0198.00 ▲1.97
Media Library /wp-admin/upload.php3.24 ▲0.0137.35 ▲3.19
CL WP Info /wp-admin/admin.php?page=cl-wp-info3.3036.58
External Tools /wp-admin/admin.php?page=cl-wp-info-tools3.2132.34

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for CL WP Info
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6613.24 ▼1.401.84 ▼0.2942.64 ▼7.53
Dashboard /wp-admin2,232 ▲415.87 ▲0.90100.36 ▼9.7442.83 ▲1.07
Posts /wp-admin/edit.php2,112 ▲232.05 ▲0.0634.31 ▼2.1233.50 ▼0.52
Add New Post /wp-admin/post-new.php1,560 ▲2623.42 ▲0.27604.87 ▼64.1868.20 ▲6.31
Media Library /wp-admin/upload.php1,414 ▲234.09 ▼0.0697.44 ▼16.8840.17 ▼10.72
CL WP Info /wp-admin/admin.php?page=cl-wp-info1,6532.0226.2558.13
External Tools /wp-admin/admin.php?page=cl-wp-info-tools1,0532.0322.4234.03

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/cl-wp-info/cl-wp-info.php
    • > /wp-content/plugins/cl-wp-info/class-cl-wp-info.php

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 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Requires at least: Version format is invalid
  • Screenshots: Screenshot #7 (External tools submenu) image not found
The official readme.txt might help

cl-wp-info/cl-wp-info.php Passed 13 tests

"CL WP Info" version 1.4.17's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
122 characters long description:
Server information, PHP and WordPress plugins and themes so that we can easily preview the website we are going to work on

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,376 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PO File23794531,159
PHP2178292907
LESS1557260
JavaScript213433
XML13712
JSON1004
CSS1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity87.00
▷ Minimum class complexity87.00
▷ Maximum class complexity87.00
Average method complexity6.06
▷ Minimum method complexity2.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected