84% pivotpress

Code Review | Pivotpress

WordPress plugin Pivotpress scored 84% from 54 tests.

About plugin

  • Plugin page: pivotpress
  • Plugin version: 0.2.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.4
  • WordPress version: 6.3.1
  • First release: Jan 6, 2016
  • Latest release: Jan 14, 2016
  • Number of updates: 20
  • Update frequency: every 0.4 days
  • Top authors: alexharris (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

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

A check of server-side resources used by Pivotpress
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0242.87 ▼2.42
Dashboard /wp-admin3.34 ▲0.0351.99 ▼0.22
Posts /wp-admin/edit.php3.39 ▲0.0350.57 ▼3.15
Add New Post /wp-admin/post-new.php5.92 ▲0.0389.25 ▼0.34
Media Library /wp-admin/upload.php3.26 ▲0.0336.63 ▲1.17
Pivotpress /wp-admin/options-general.php?page=pivotpress3.2334.63

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

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

Browser metrics Passed 4 tests

Pivotpress: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲11413.66 ▲0.436.82 ▲5.0259.91 ▲18.48
Dashboard /wp-admin2,207 ▲15.83 ▲0.99100.13 ▼10.3441.26 ▼0.31
Posts /wp-admin/edit.php2,096 ▲72.00 ▼0.0248.68 ▲9.3337.24 ▼0.32
Add New Post /wp-admin/post-new.php1,536 ▲1723.22 ▼0.05668.98 ▼60.3552.83 ▲0.50
Media Library /wp-admin/upload.php1,392 ▲44.20 ▲0.0195.63 ▼13.8741.99 ▼2.24
Pivotpress /wp-admin/options-general.php?page=pivotpress7892.0324.1928.96

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 15× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/pivotpress/templates/pivotpress-story.php on line 14
    • > PHP Notice
      Undefined variable: story in wp-content/plugins/pivotpress/templates/pivotpress-story.php on line 4
    • > PHP Notice
      Trying to get property 'estimate' of non-object in wp-content/plugins/pivotpress/templates/pivotpress-story.php on line 19
    • > PHP Notice
      Undefined variable: story in wp-content/plugins/pivotpress/templates/pivotpress-story.php on line 10
    • > PHP Notice
      Undefined variable: story in wp-content/plugins/pivotpress/templates/pivotpress-story.php on line 14
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/pivotpress/templates/pivotpress-story.php on line 4
    • > PHP Notice
      Trying to get property 'current_state' of non-object in wp-content/plugins/pivotpress/templates/pivotpress-story.php on line 1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function pivotpress_out_story_type_svg() in wp-content/plugins/pivotpress/templates/pivotpress-story.php:25
    • > PHP Fatal error
      Uncaught Error: Call to undefined function pivotpress_get_labels() in wp-content/plugins/pivotpress/templates/pivotpress-main.php:25
    • > PHP Notice
      Undefined variable: story in wp-content/plugins/pivotpress/templates/pivotpress-story.php on line 19

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Tags: There are too many tags (14 tag instead of maximum 10)
The official readme.txt is a good inspiration

pivotpress/pivotpress.php Passed 13 tests

The main PHP script in "Pivotpress" version 0.2.6 is automatically included on every request by WordPress
47 characters long description:
A simple Pivotal Tracker frontend for Wordpress

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 plugin6,285 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS11,37095,270
Sass3671441
SVG200310
PHP46960183
JavaScript119381

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected