84% cioc-volunteer-opportunity-feeds

Code Review | CIOC Volunteer Opportunity Feeds

WordPress plugin CIOC Volunteer Opportunity Feeds scored84%from 54 tests.

About plugin

  • Plugin page: cioc-volunteer-op...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.9.4
  • WordPress version: 6.3.1
  • First release: Jan 19, 2016
  • Latest release: Mar 2, 2018
  • Number of updates: 5
  • Update frequency: every 153.8 days
  • Top authors: klambacher (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /551 total downloads

Benchmarks

Plugin footprint 83% 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.99ms] Passed 4 tests

A check of server-side resources used by CIOC Volunteer Opportunity Feeds
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.16 ▼0.74
Dashboard /wp-admin3.33 ▲0.0247.69 ▲0.38
Posts /wp-admin/edit.php3.38 ▲0.0245.21 ▼10.75
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.69 ▼15.16
Media Library /wp-admin/upload.php3.25 ▲0.0236.88 ▼1.32

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for CIOC Volunteer Opportunity Feeds
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.67 ▲0.322.03 ▲0.1744.96 ▲2.12
Dashboard /wp-admin2,195 ▲185.58 ▲0.0485.58 ▲1.3840.53 ▲1.62
Posts /wp-admin/edit.php2,097 ▼62.03 ▲0.0235.15 ▼2.1233.77 ▼0.22
Add New Post /wp-admin/post-new.php1,526 ▼1123.33 ▼1.62685.16 ▲57.2357.83 ▼8.82
Media Library /wp-admin/upload.php1,400 ▼04.28 ▲0.12108.93 ▲6.3147.28 ▲4.96

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/cioc-volunteer-opportunity-feeds/cioc-volunteer.php:159

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
No tags were found

cioc-volunteer-opportunity-feeds/cioc-volunteer.php 92% from 13 tests

The main PHP file in "CIOC Volunteer Opportunity Feeds" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cioc-volunteer-opportunity-feeds.php" instead of "cioc-volunteer.php")

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
No dangerous file extensions were detected133 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1198133

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.78
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%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin