84% plugin-all-info

Code Review | Plugin All Info

WordPress plugin Plugin All Info scored 84% from 54 tests.

About plugin

  • Plugin page: plugin-all-info
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.1
  • WordPress version: 6.3.1
  • First release: Mar 12, 2016
  • Latest release: Jan 10, 2018
  • Number of updates: 16
  • Update frequency: every 41.8 days
  • Top authors: wpshopee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,232 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.03MB] [CPU: ▼6.95ms] Passed 4 tests

An overview of server-side resources used by Plugin All Info
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.81 ▼2.57
Dashboard /wp-admin3.34 ▲0.0449.26 ▲2.00
Posts /wp-admin/edit.php3.39 ▲0.0347.71 ▼6.70
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.98 ▼14.80
Media Library /wp-admin/upload.php3.26 ▲0.0333.23 ▼3.72
Plugin All Info /wp-admin/options-general.php?page=plugin-all-info3.2330.83

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Plugin All Info
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.47 ▼0.911.78 ▲0.1443.60 ▲1.78
Dashboard /wp-admin2,210 ▲224.88 ▼0.02111.38 ▼6.3146.02 ▲4.31
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0234.79 ▼6.6833.94 ▼1.23
Add New Post /wp-admin/post-new.php1,536 ▲2223.35 ▲5.91663.48 ▼13.5455.53 ▼4.96
Media Library /wp-admin/upload.php1,392 ▲74.19 ▲0.0096.14 ▼8.6844.84 ▼5.08
Plugin All Info /wp-admin/options-general.php?page=plugin-all-info9022.0224.3529.12

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 detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/plugin-all-info/plugin-all-info.php
    • > /wp-content/plugins/plugin-all-info/settings/admin-page.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: developer, tool, info, plugin, plugin-api...

plugin-all-info/plugin-all-info.php Passed 13 tests

"Plugin All Info" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
66 characters long description:
Plugin all info to fetch all plugin information from wordpress.org

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected253 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2526253

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions4
▷ Named functions4100.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
PNG images were not found in this plugin