84% formulas

Code Review | Formulas

WordPress plugin Formulas scored84%from 54 tests.

About plugin

  • Plugin page: formulas
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.2
  • WordPress version: 6.3.1
  • First release: Jan 19, 2015
  • Latest release: Apr 24, 2015
  • Number of updates: 4
  • Update frequency: every 25.5 days
  • Top authors: amandato (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /991 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼7.07ms] Passed 4 tests

A check of server-side resources used by Formulas
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0339.27 ▼1.40
Dashboard /wp-admin3.34 ▲0.0347.83 ▼2.38
Posts /wp-admin/edit.php3.39 ▲0.0343.96 ▲0.77
Add New Post /wp-admin/post-new.php5.92 ▲0.0380.96 ▼25.28
Media Library /wp-admin/upload.php3.26 ▲0.0336.78 ▲3.96

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Formulas: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲16213.59 ▼1.038.73 ▲7.0442.53 ▼2.07
Dashboard /wp-admin2,203 ▲175.81 ▼0.1198.83 ▼5.4638.15 ▼0.17
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0434.75 ▼5.5235.76 ▲0.51
Add New Post /wp-admin/post-new.php1,533 ▲523.30 ▲4.95641.94 ▲24.1948.98 ▼2.29
Media Library /wp-admin/upload.php1,391 ▼04.24 ▲0.0594.75 ▼4.7541.98 ▼0.62

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/formulas/formulas.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: static compression ratio, automotive, engine displacement, compression ratio, cars...

formulas/formulas.php Passed 13 tests

This is the main PHP file of "Formulas" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
48 characters long description:
Automotive formulas for car enthusiast web sites

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
No dangerous file extensions were detected222 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP24732134
CSS15351
JavaScript111337

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity4.20
▷ Minimum method complexity1.00
▷ Maximum method complexity10.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%
Constants2
▷ Global constants2100.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 are no PNG files in this plugin