89% iq-asset-datasheet

Code Review | Instant-Quote.co Asset Datasheet

WordPress plugin Instant-Quote.co Asset Datasheet scored89%from 54 tests.

About plugin

  • Plugin page: iq-asset-datasheet
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9
  • WordPress version: 6.3.1
  • First release: Dec 1, 2017
  • Latest release: Dec 1, 2017
  • Number of updates: 29
  • Update frequency: every 1.2 days
  • Top authors: neilmccutcheon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /778 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.06MB] [CPU: ▼2.27ms] Passed 4 tests

Analyzing server-side resources used by Instant-Quote.co Asset Datasheet
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0536.68 ▼1.24
Dashboard /wp-admin3.38 ▲0.0450.98 ▼4.51
Posts /wp-admin/edit.php3.50 ▲0.1448.01 ▲3.35
Add New Post /wp-admin/post-new.php5.96 ▲0.0791.64 ▼4.84
Media Library /wp-admin/upload.php3.31 ▲0.0732.71 ▲1.53
Instant-Quote.co Asset Datasheet /wp-admin/options-general.php?page=IQdatasheet_template3.2733.34

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Instant-Quote.co Asset Datasheet
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.33 ▼1.051.61 ▼0.2441.77 ▲2.60
Dashboard /wp-admin2,214 ▲315.85 ▲0.96106.95 ▲0.1640.99 ▼4.00
Posts /wp-admin/edit.php2,099 ▲102.01 ▲0.0038.33 ▲1.5036.71 ▲5.01
Add New Post /wp-admin/post-new.php1,549 ▲3518.56 ▲0.96608.93 ▼160.7545.99 ▼8.45
Media Library /wp-admin/upload.php1,399 ▲114.23 ▲0.0298.57 ▲2.9342.86 ▼1.65
Instant-Quote.co Asset Datasheet /wp-admin/options-general.php?page=IQdatasheet_template9922.1921.8427.20

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: asset datasheet, datasheet, iq, instant quote, instant-quote

iq-asset-datasheet/IQ-asset-datasheet.php 85% from 13 tests

The primary PHP file in "Instant-Quote.co Asset Datasheet" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("iq-asset-datasheet.php" instead of "IQ-asset-datasheet.php")
  • Text Domain: Please use dashes and lowercase characters for text domains

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
Success! There were no dangerous files found in this plugin786 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS3229284
PHP14659258
JavaScript1261244

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.10
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.55
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/IQ_logo.png76.32KB24.84KB▼ 67.45%