84% plot-over-time-extended

Code Review | Plot Over Time - Extended

WordPress plugin Plot Over Time - Extended scored84%from 54 tests.

About plugin

  • Plugin page: plot-over-time-ex...
  • Plugin version: 1.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9
  • WordPress version: 6.3.1
  • First release: Aug 2, 2014
  • Latest release: Aug 6, 2014
  • Number of updates: 15
  • Update frequency: every 0.3 days
  • Top authors: rdcravens (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,042 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

A check of server-side resources used by Plot Over Time - Extended
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.88 ▲1.02
Dashboard /wp-admin3.31 ▼0.0442.41 ▼16.43
Posts /wp-admin/edit.php3.36 ▲0.0046.98 ▼0.24
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.54 ▼8.13
Media Library /wp-admin/upload.php3.23 ▲0.0031.99 ▼1.07

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Plot Over Time - Extended: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.47 ▼0.281.79 ▲0.0243.56 ▲3.81
Dashboard /wp-admin2,206 ▲155.85 ▲0.9897.47 ▼2.1037.31 ▼5.71
Posts /wp-admin/edit.php2,092 ▲32.00 ▲0.0143.41 ▲3.3436.54 ▲0.86
Add New Post /wp-admin/post-new.php1,533 ▼023.23 ▼0.14669.69 ▲0.6451.08 ▼6.34
Media Library /wp-admin/upload.php1,385 ▼34.20 ▼0.1295.99 ▼1.5940.46 ▼7.51

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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 fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/plot-over-time-extended/plot_ext.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (Example of AreaGraph formatted data), #2 (Example of LineChart formatted data), #3 (Example of the PieChart formatted data)
The official readme.txt might help

plot-over-time-extended/plot_ext.php 92% from 13 tests

The main PHP script in "Plot Over Time - Extended" version 1.4.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("plot-over-time-extended.php" instead of "plot_ext.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin149 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13021149

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.49
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%
Functions3
▷ Named functions3100.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
3 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png20.17KB4.80KB▼ 76.18%
screenshot-1.png21.70KB5.65KB▼ 73.98%
screenshot-3.png16.75KB4.98KB▼ 70.24%