84% wp-circliful

Code Review | WP Circliful

WordPress plugin WP Circliful scored 84% from 54 tests.

About plugin

  • Plugin page: wp-circliful
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.2
  • WordPress version: 5.8.1
  • First release: May 15, 2014
  • Latest release: Mar 2, 2017
  • Number of updates: 5
  • Update frequency: every 204.4 days
  • Top authors: bappi.d.great (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 877 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.10MB] [CPU: ▼143.96ms] Passed 4 tests

Server-side resources used by WP Circliful
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.95 ▲0.2336.67 ▲13.36
Dashboard /wp-admin3.17 ▲0.1148.32 ▲1.76
Posts /wp-admin/edit.php3.22 ▲0.1147.65 ▲0.54
Add New Post /wp-admin/post-new.php5.52 ▲0.0991.49 ▼576.84
Media Library /wp-admin/upload.php3.11 ▲0.1134.72 ▼1.29
All Circlifuls /wp-admin/edit.php?post_type=circlifuls3.1531.84
Add New Circliful /wp-admin/post-new.php?post_type=circlifuls3.1847.27

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 1 new option
New WordPress options
widget_circliful_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Circliful
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,865 ▲29416.69 ▲0.7616.17 ▲6.0547.30 ▼4.99
Dashboard /wp-admin3,005 ▲685.90 ▼0.17151.59 ▲3.03115.25 ▲3.84
Posts /wp-admin/edit.php2,774 ▲352.73 ▲0.0169.86 ▲0.9588.75 ▼0.90
Add New Post /wp-admin/post-new.php1,706 ▲3418.75 ▲0.04418.51 ▲41.19109.70 ▲0.76
Media Library /wp-admin/upload.php1,857 ▲475.05 ▲0.03151.19 ▼0.26111.26 ▼9.95
All Circlifuls /wp-admin/edit.php?post_type=circlifuls1,4632.6472.4672.48
Add New Circliful /wp-admin/post-new.php?post_type=circlifuls2,5343.45106.06118.94

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 1 option in the database
    • widget_circliful_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)
Good news, no errors were detected

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 fix the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-circliful/wp-circliful.php on line 20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-circliful/wp-circliful.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === wp-circliful === )
The official readme.txt is a good inspiration

wp-circliful/wp-circliful.php 92% from 13 tests

"WP Circliful" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 538 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected744 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
SVG100414
PHP15245308
CSS23318
JavaScript2004

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity23.00
▷ Minimum class complexity7.00
▷ Maximum class complexity39.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin