10% functionscapacitor

Code Review | functionsCapacitor

WordPress plugin functionsCapacitor scored10%from 54 tests.

About plugin

  • Plugin page: functionscapacitor
  • Plugin version: 0.9.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0.0
  • WordPress version: 6.3.1
  • First release: Feb 28, 2012
  • Latest release: Oct 29, 2014
  • Number of updates: 20
  • Update frequency: every 48.9 days
  • Top authors: oliezekat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,095 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/functionscapacitor/functionscapacitor.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; functionsCapacitor has a deprecated constructor

Server metrics [RAM: ▼1.69MB] [CPU: ▼54.12ms] Passed 4 tests

Server-side resources used by functionsCapacitor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.30 ▼1.164.98 ▼42.79
Dashboard /wp-admin2.32 ▼0.998.06 ▼48.53
Posts /wp-admin/edit.php2.32 ▼1.049.17 ▼39.22
Add New Post /wp-admin/post-new.php2.32 ▼3.577.81 ▼85.93
Media Library /wp-admin/upload.php2.32 ▼0.918.14 ▼27.05

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_functionscapacitor_widget
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

functionsCapacitor: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.31 ▼1.271.61 ▼0.1641.04 ▼2.64
Dashboard /wp-admin2,206 ▲215.77 ▼0.1395.88 ▼9.9442.98 ▼0.68
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0440.85 ▲2.2734.45 ▼3.49
Add New Post /wp-admin/post-new.php1,533 ▼123.12 ▼0.06663.31 ▲37.9560.37 ▲4.56
Media Library /wp-admin/upload.php1,388 ▼34.14 ▲0.0196.67 ▼4.0941.20 ▼2.47

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/functionscapacitor/functionscapacitor.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; functionsCapacitor has a deprecated constructor
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_functionscapacitor_widget
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
Good news, no errors were detected

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-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/functionscapacitor/functionscapacitor.php:920

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 17 tag instead of maximum 10
The official readme.txt is a good inspiration

functionscapacitor/functionscapacitor.php Passed 13 tests

The entry point to "functionsCapacitor" version 0.9.6 is a PHP file that has certain tags in its header comment area
136 characters long description:
Back WordPress API to the content. This plugin allow to apply some WordPress API's functions into your post/page content or as a widget.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin914 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP110230914

PHP code Passed 2 tests

This is a short overview 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.51
Average class complexity88.00
▷ Minimum class complexity19.00
▷ Maximum class complexity157.00
Average method complexity7.96
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods25100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected