84% capitalporg-quote-widget

Code Review | CapitalP.org Quote Widget

WordPress plugin CapitalP.org Quote Widget scored84%from 54 tests.

About plugin

  • Plugin page: capitalporg-quote...
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.2
  • WordPress version: 6.3.1
  • First release: Dec 30, 2011
  • Latest release: Sep 24, 2016
  • Number of updates: 11
  • Update frequency: every 157.3 days
  • Top authors: trepmal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,317 total downloads


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: ▼1.51ms] Passed 4 tests

Server-side resources used by CapitalP.org Quote Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0145.79 ▲1.37
Dashboard /wp-admin3.31 ▲0.0151.97 ▼3.38
Posts /wp-admin/edit.php3.37 ▲0.0145.23 ▼2.90
Add New Post /wp-admin/post-new.php5.90 ▲0.0198.09 ▼1.11
Media Library /wp-admin/upload.php3.24 ▲0.0137.96 ▲4.95

Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

CapitalP.org Quote Widget: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.361.77 ▲0.1043.65 ▼0.77
Dashboard /wp-admin2,189 ▲125.60 ▲0.0397.70 ▲2.8542.42 ▼2.84
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0236.00 ▼0.0934.57 ▼4.31
Add New Post /wp-admin/post-new.php1,535 ▲418.25 ▼4.81629.31 ▼61.0672.84 ▲24.53
Media Library /wp-admin/upload.php1,400 ▲34.18 ▼0.06105.36 ▲7.2047.04 ▲4.03

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
  • Zombie WordPress options were found after uninstall: 7 options
    • db_upgraded
    • widget_capitalp
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/capitalporg-quote-widget/capitalp-widget.php:55

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test


Plugin configuration 96% 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
3 plugin tags: widget, capitalporg, capital_p_dangit

capitalporg-quote-widget/capitalp-widget.php 92% from 13 tests

"CapitalP.org Quote Widget" version 0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("capitalporg-quote-widget.php" instead of "capitalp-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected84 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ 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
There were not PNG files found in your plugin