84% info

Code Review | info

WordPress plugin info scored84%from 54 tests.

About plugin

  • Plugin page: info
  • Plugin version: 2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.5
  • WordPress version: 6.3.1
  • First release: Apr 29, 2011
  • Latest release: Aug 10, 2020
  • Number of updates: 25
  • Update frequency: every 135.6 days
  • Top authors: webvitaly (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active /8,175 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

A check of server-side resources used by info
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0134.20 ▼8.24
Dashboard /wp-admin3.32 ▲0.0145.91 ▼2.55
Posts /wp-admin/edit.php3.37 ▲0.0150.53 ▲2.21
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.39 ▼19.34
Media Library /wp-admin/upload.php3.24 ▲0.0133.52 ▲1.09

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

info: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7313.26 ▼1.534.06 ▲2.3039.33 ▼8.34
Dashboard /wp-admin2,215 ▲274.86 ▼1.05112.04 ▼0.3344.51 ▲1.89
Posts /wp-admin/edit.php2,098 ▲92.03 ▼0.0234.11 ▼7.4631.00 ▼3.89
Add New Post /wp-admin/post-new.php1,517 ▼217.64 ▼5.68662.76 ▼4.2361.87 ▲4.57
Media Library /wp-admin/upload.php1,397 ▲94.17 ▼0.0793.55 ▼15.4641.72 ▼6.05

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/info/info.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (info in the admin bar), #2 (info in the source code)
You can look at the official readme.txt

info/info.php Passed 13 tests

The primary PHP file in "info" version 2.4 is used by WordPress to initiate all plugin functionality
103 characters long description:
Plugin shows in the admin bar the number of SQL queries, the amount of time in seconds and memory load.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin39 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP191039

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png13.33KB6.79KB▼ 49.08%
screenshot-1.png11.77KB5.54KB▼ 52.95%