84% percent-to-infograph

Code Review | Percent to Infograph

WordPress plugin Percent to Infograph scored84%from 54 tests.

About plugin

  • Plugin page: percent-to-infograph
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.9
  • WordPress version: 6.3.1
  • First release: May 30, 2014
  • Latest release: May 30, 2014
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: cutesalah (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,566 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Percent to Infograph
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0146.66 ▲0.21
Dashboard /wp-admin3.32 ▲0.0153.51 ▲1.18
Posts /wp-admin/edit.php3.37 ▲0.0150.06 ▼1.55
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.70 ▼9.58
Media Library /wp-admin/upload.php3.24 ▲0.0140.06 ▲1.25

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Percent to Infograph
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,875 ▲11413.49 ▼1.099.28 ▲7.4943.02 ▲2.09
Dashboard /wp-admin2,198 ▲245.59 ▲0.0792.54 ▲1.1637.90 ▼8.82
Posts /wp-admin/edit.php2,100 ▲31.97 ▼0.0536.71 ▲1.3234.21 ▼2.40
Add New Post /wp-admin/post-new.php1,531 ▲322.77 ▼0.47680.65 ▲4.3252.48 ▲3.58
Media Library /wp-admin/upload.php1,403 ▲64.26 ▲0.02101.42 ▲0.0944.65 ▲0.26

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at 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/percent-to-infograph/percent_infograph.php:56

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: number, graphics, percent, info, graph...

percent-to-infograph/percent_infograph.php 85% from 13 tests

The main PHP file in "Percent to Infograph" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 667 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("percent-to-infograph.php" instead of "percent_infograph.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin58 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1164240
CSS13017
JavaScript1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
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