89% developer-info

Code Review | WP Developer Info

WordPress plugin WP Developer Info scored 89% from 54 tests.

About plugin

  • Plugin page: developer-info
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.0-4.7
  • WordPress version: 6.3.1
  • First release: Jan 27, 2013
  • Latest release: Dec 11, 2016
  • Number of updates: 27
  • Update frequency: every 52.4 days
  • Top authors: dan.rossiter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,465 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

A check of server-side resources used by WP Developer Info
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.55 ▼13.45
Dashboard /wp-admin3.31 ▲0.0145.23 ▼2.43
Posts /wp-admin/edit.php3.36 ▲0.0147.69 ▼2.30
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.85 ▼9.56
Media Library /wp-admin/upload.php3.23 ▲0.0135.23 ▼6.82

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WP Developer Info
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲8113.19 ▼1.461.72 ▼0.1742.81 ▼2.24
Dashboard /wp-admin2,206 ▲155.85 ▲0.98103.71 ▲4.5037.20 ▼5.10
Posts /wp-admin/edit.php2,092 ▲31.99 ▼0.0538.36 ▼1.6933.97 ▼1.78
Add New Post /wp-admin/post-new.php1,542 ▲2318.03 ▼5.13609.55 ▼17.0749.53 ▲0.56
Media Library /wp-admin/upload.php1,388 ▼34.18 ▼0.0292.70 ▼12.9141.33 ▼3.44

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Sample default output using `[dev-info author=danrossiter]`.) image required
You can take inspiration from this readme.txt

developer-info/wp-developer-info.php 85% from 13 tests

The entry point to "WP Developer Info" version 1.0.4 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("developer-info.php" instead of "wp-developer-info.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin332 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP497231304
CSS15028

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity11.50
▷ Minimum class complexity1.00
▷ Maximum class complexity29.00
Average method complexity2.31
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes125.00%
▷ Concrete classes375.00%
▷ Final classes00.00%
Methods33
▷ Static methods2369.70%
▷ Public methods721.21%
▷ Protected methods824.24%
▷ Private methods1854.55%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png54.41KB27.02KB▼ 50.35%