78% gravity-to-solve360

Code Review | Gravity to Solve360

WordPress plugin Gravity to Solve360 scored78%from 54 tests.

About plugin

  • Plugin page: gravity-to-solve360
  • Plugin version: 0.97
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.3-3.3.1
  • WordPress version: 6.3.1
  • First release: Feb 21, 2012
  • Latest release: Jun 20, 2012
  • Number of updates: 11
  • Update frequency: every 11.0 days
  • Top authors: steve.barnett (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,143 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.85ms] Passed 4 tests

Server-side resources used by Gravity to Solve360
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.73 ▲0.58
Dashboard /wp-admin3.31 ▲0.0150.36 ▼7.51
Posts /wp-admin/edit.php3.36 ▲0.0152.44 ▲4.55
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.53 ▼5.01
Media Library /wp-admin/upload.php3.23 ▲0.0139.00 ▲6.09
Gravity to Solve360 /wp-admin/options-general.php?page=gravity-to-solve360-options3.2036.10
Gravity to Solve360 /wp-admin/tools.php?page=gravity-to-solve3603.3136.00

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments
gravity_to_solve360_debug_mode
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Gravity to Solve360: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲8714.76 ▲0.182.23 ▲0.1542.79 ▼2.33
Dashboard /wp-admin2,217 ▲294.85 ▼0.06107.94 ▲0.9239.94 ▼5.48
Posts /wp-admin/edit.php2,097 ▲82.04 ▲0.0140.38 ▲4.5635.24 ▼4.28
Add New Post /wp-admin/post-new.php1,529 ▲1523.09 ▲5.55653.34 ▲29.6757.18 ▲11.82
Media Library /wp-admin/upload.php1,393 ▲54.23 ▼0.02108.49 ▲3.5446.16 ▲2.50
Gravity to Solve360 /wp-admin/options-general.php?page=gravity-to-solve360-options9622.0422.9827.20
Gravity to Solve360 /wp-admin/tools.php?page=gravity-to-solve3607612.0224.7424.48

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
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • gravity_to_solve360_debug_mode
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/tools.php?page=gravity-to-solve360
    • > Notice in wp-content/plugins/gravity-to-solve360/gravity-to-solve360.inc.php+449
    Undefined variable: modeoutput

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 fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/gravity-to-solve360/gravity-to-solve360.inc.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gravity-to-solve360/gravity-to-solve360.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: solve360, gravityforms, gravity

gravity-to-solve360/gravity-to-solve360.php 92% from 13 tests

The entry point to "Gravity to Solve360" version 0.97 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 150 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected903 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3284645903

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity1.26
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods68
▷ Static methods00.00%
▷ Public methods6595.59%
▷ Protected methods34.41%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants25
▷ Global constants00.00%
▷ Class constants25100.00%
▷ Public constants25100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin