84% wp-quip

Code Review | WP Quip

WordPress plugin WP Quip scored84%from 54 tests.

About plugin

  • Plugin page: wp-quip
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-4.9.2
  • WordPress version: 6.3.1
  • First release: Feb 1, 2018
  • Latest release: Feb 1, 2018
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: cloudposse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /718 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by WP Quip
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0748.02 ▲7.57
Dashboard /wp-admin3.37 ▲0.0246.14 ▼19.66
Posts /wp-admin/edit.php3.42 ▲0.0647.53 ▲2.66
Add New Post /wp-admin/post-new.php5.95 ▲0.0694.74 ▼3.34
Media Library /wp-admin/upload.php3.29 ▲0.0633.26 ▲1.70
WP Quip /wp-admin/options-general.php?page=cloudposse_wp_quip_settings3.2630.63

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
cloudposse_wp_quip_plugin_version
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for WP Quip
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8513.20 ▼1.422.30 ▼0.2240.25 ▼2.50
Dashboard /wp-admin2,210 ▲224.86 ▼0.99107.53 ▼7.5741.59 ▼7.15
Posts /wp-admin/edit.php2,096 ▲72.01 ▲0.0040.16 ▲3.2337.27 ▲0.70
Add New Post /wp-admin/post-new.php1,545 ▲1718.22 ▼4.92637.21 ▼45.1264.58 ▲9.37
Media Library /wp-admin/upload.php1,386 ▼54.21 ▼0.0093.78 ▼3.8341.16 ▼4.87
WP Quip /wp-admin/options-general.php?page=cloudposse_wp_quip_settings8372.0124.9024.88

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-quip/wp-quip.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid URI ("")
You can take inspiration from this readme.txt

wp-quip/wp-quip.php Passed 13 tests

The entry point to "WP Quip" version 1.0.0 is a PHP file that has certain tags in its header comment area
30 characters long description:
Quip integration for WordPress

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 detected314 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP288117286
CSS13028

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.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
1 PNG file occupies 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/CloudPosse_Logo.png59.81KB31.13KB▼ 47.95%