10% pivto

Code Review | Pivto for Wordpress

WordPress plugin Pivto for Wordpress scored10%from 54 tests.

About plugin

  • Plugin page: pivto
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.1-0.3
  • WordPress version: 6.3.1
  • First release: Nov 6, 2013
  • Latest release: Jan 21, 2014
  • Number of updates: 12
  • Update frequency: every 6.5 days
  • Top authors: AlexAlevy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,082 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/pivto/wordpress-pivto.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; wordpressPivto has a deprecated constructor

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.10ms] Passed 4 tests

Server-side resources used by Pivto for Wordpress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.61 ▼8.07
Dashboard /wp-admin3.32 ▼0.0347.19 ▼18.31
Posts /wp-admin/edit.php3.37 ▲0.0154.24 ▲4.72
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.80 ▼10.11
Media Library /wp-admin/upload.php3.24 ▲0.0138.26 ▲4.11

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Pivto for Wordpress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5914.72 ▲0.461.94 ▲0.2644.52 ▼0.40
Dashboard /wp-admin2,211 ▲345.73 ▲0.0888.23 ▼1.3437.42 ▼5.90
Posts /wp-admin/edit.php2,116 ▲161.98 ▼0.0139.26 ▲2.6934.06 ▲0.47
Add New Post /wp-admin/post-new.php1,541 ▲1323.13 ▲0.25667.05 ▲0.9549.74 ▼7.32
Media Library /wp-admin/upload.php1,416 ▲194.18 ▼0.03134.36 ▲15.9558.13 ▲10.65

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pivto/wordpress-pivto.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 20 tag instead of maximum 10
You can look at the official readme.txt

pivto/wordpress-pivto.php 92% from 13 tests

The principal PHP file in "Pivto for Wordpress" v. 0.2 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("pivto.php" instead of "wordpress-pivto.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin123 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1822123

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.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
There were not PNG files found in your plugin