79% plugin-information-card

Code Review | Plugin Information Card

WordPress plugin Plugin Information Card scored79%from 54 tests.

About plugin

  • Plugin page: plugin-informatio...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.8
  • WordPress version: 6.3.1
  • First release: Oct 19, 2018
  • Latest release: Oct 24, 2018
  • Number of updates: 16
  • Update frequency: every 0.4 days
  • Top authors: Hiroaki Miyashita (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /613 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
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼10.02ms] Passed 4 tests

Analyzing server-side resources used by Plugin Information Card
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0545.24 ▼0.25
Dashboard /wp-admin3.36 ▲0.0547.99 ▼11.81
Posts /wp-admin/edit.php3.41 ▲0.0549.23 ▲1.76
Add New Post /wp-admin/post-new.php5.94 ▲0.0582.70 ▼27.86
Media Library /wp-admin/upload.php3.28 ▲0.0536.11 ▼0.14

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 9 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
pic_css
widget_recent-posts
can_compress_scripts
db_upgraded
pic_days
pic_format
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Plugin Information Card
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.42 ▲0.151.80 ▲0.0745.17 ▲4.30
Dashboard /wp-admin2,193 ▲195.55 ▼0.0584.52 ▼6.7938.03 ▼2.56
Posts /wp-admin/edit.php2,101 ▲11.98 ▼0.0436.03 ▼6.2533.76 ▼6.22
Add New Post /wp-admin/post-new.php1,529 ▲322.94 ▼0.27673.80 ▲65.1651.87 ▼16.51
Media Library /wp-admin/upload.php1,404 ▲44.25 ▲0.0296.44 ▼8.2547.46 ▲2.68
Plugin Information Card /wp-admin/plugin-information-card.php260.420.1214.35

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 9 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • pic_css
    • pic_format
    • widget_theysaidso_widget
    • pic_days
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/plugin-information-card/plugin-information-card.php:32

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/plugin-information-card.php
    • > Network (severe)
    wp-admin/plugin-information-card.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: information, sticky, plugin, plugins, wordpress...

plugin-information-card/plugin-information-card.php Passed 13 tests

The main PHP file in "Plugin Information Card" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
105 characters long description:
This plugin adds the functionality to output information about plugins in the WordPress plugin directory.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin190 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13124190

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected