74% wp-camp-webring

Code Review | WP Camp Webring

WordPress plugin WP Camp Webring scored74%from 54 tests.

About plugin

  • Plugin page: wp-camp-webring
  • Plugin version: 0.3.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6.1
  • WordPress version: 6.3.1
  • First release: Oct 18, 2013
  • Latest release: Nov 14, 2013
  • Number of updates: 17
  • Update frequency: every 1.6 days
  • Top authors: Kau-Boy (58.82%)nullbyte (47.06%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /891 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.92MB] [CPU: ▼57.97ms] Passed 4 tests

An overview of server-side resources used by WP Camp Webring
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.01 ▼36.94
Dashboard /wp-admin2.09 ▼1.225.93 ▼53.18
Posts /wp-admin/edit.php2.09 ▼1.276.33 ▼47.20
Add New Post /wp-admin/post-new.php2.09 ▼3.807.51 ▼94.56
Media Library /wp-admin/upload.php2.09 ▼1.146.23 ▼28.16

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Camp Webring
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲6513.65 ▼0.971.60 ▼0.7943.67 ▼2.50
Dashboard /wp-admin2,221 ▲185.80 ▲0.79101.84 ▼17.8541.97 ▲1.57
Posts /wp-admin/edit.php2,100 ▼32.18 ▲0.1440.35 ▲1.1437.17 ▲1.05
Add New Post /wp-admin/post-new.php1,554 ▲2818.25 ▲0.58611.01 ▼50.6852.01 ▼3.92
Media Library /wp-admin/upload.php1,397 ▼64.20 ▼0.05100.57 ▼3.2146.30 ▲2.65

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method wp_camp_webring::get_object() should not be called statically
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-camp-webring/wp-camp-webring.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: spam, comments

wp-camp-webring/wp-camp-webring.php Passed 13 tests

The main PHP file in "WP Camp Webring" ver. 0.3.10 adds more information about the plugin and also serves as the entry point for this plugin
84 characters long description:
We do a webring of pages that are attending to the WP Camp in Germany like it's 1997

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
Good job! No executable or dangerous file extensions detected87 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1227048
CSS11139

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected