90% wp-inspire

Code Review | WP Inspire

WordPress plugin WP Inspire scored90%from 54 tests.

About plugin

  • Plugin page: wp-inspire
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6.0-4.9.5
  • WordPress version: 6.3.1
  • First release: May 6, 2018
  • Latest release: May 6, 2018
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: leroyjames (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /504 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
This plugin's installer ran successfully

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

Server-side resources used by WP Inspire
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.03 ▼4.13
Dashboard /wp-admin3.32 ▲0.0150.45 ▼4.91
Posts /wp-admin/edit.php3.37 ▲0.0148.77 ▼4.05
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.43 ▼17.17
Media Library /wp-admin/upload.php3.24 ▲0.0139.13 ▲2.16

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WP Inspire
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,788 ▲2714.17 ▼0.181.86 ▲0.1543.39 ▲1.40
Dashboard /wp-admin2,195 ▲215.63 ▲0.0797.18 ▲2.7742.23 ▼4.82
Posts /wp-admin/edit.php2,103 ▲61.96 ▼0.0633.50 ▼6.7433.05 ▼3.42
Add New Post /wp-admin/post-new.php1,526 ▼222.91 ▼0.14694.30 ▲6.7950.35 ▼4.49
Media Library /wp-admin/upload.php1,400 ▼04.09 ▼0.11110.21 ▼5.2345.98 ▼2.00

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

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 everything seems fine, this is not 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
No browser issues were found

Optimizations

Plugin configuration 96% from 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
4 plugin tags: login, inspirational, wp login, login form

wp-inspire/index.php 92% from 13 tests

The primary PHP file in "WP Inspire" version 1.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-inspire.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected6,640 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JSON1006,538
CSS191470
PHP2111632

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions6
▷ Named functions6100.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
No PNG images were found in this plugin