90% my-plugin-information

Code Review | My Plugin Information

WordPress plugin My Plugin Information scored 90% from 54 tests.

About plugin

  • Plugin page: my-plugin-informa...
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2.2
  • WordPress version: 6.3.1
  • First release: Oct 1, 2013
  • Latest release: Jun 24, 2015
  • Number of updates: 16
  • Update frequency: every 50.2 days
  • Top authors: hchouhan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,453 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.34ms] Passed 4 tests

An overview of server-side resources used by My Plugin Information
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0139.27 ▼4.57
Dashboard /wp-admin3.31 ▲0.0044.32 ▼3.40
Posts /wp-admin/edit.php3.36 ▲0.0046.51 ▼5.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.00 ▼4.32
Media Library /wp-admin/upload.php3.23 ▲0.0035.21 ▲0.92

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for My Plugin Information
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.74 ▲0.361.81 ▼0.0739.22 ▲0.46
Dashboard /wp-admin2,203 ▲155.83 ▼0.07101.58 ▲2.5238.70 ▼3.45
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0840.17 ▲0.4135.83 ▲1.06
Add New Post /wp-admin/post-new.php1,537 ▲1418.32 ▼4.85611.62 ▼43.1751.52 ▼4.09
Media Library /wp-admin/upload.php1,388 ▼34.22 ▼0.0195.39 ▼2.1640.05 ▼2.60

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: plugin, directory, list, plugin data, plugin directory...

my-plugin-information/my-plugin-info.php 92% from 13 tests

The main PHP file in "My Plugin Information" ver. 0.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("my-plugin-information.php" instead of "my-plugin-info.php")

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
Good job! No executable or dangerous file extensions detected63 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4388463

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin