68% proverbs

Code Review | Proverbs

WordPress plugin Proverbs scored68%from 54 tests.

About plugin

  • Plugin page: proverbs
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.5-4.9.5
  • WordPress version: 6.3.1
  • First release: Jan 10, 2018
  • Latest release: May 8, 2018
  • Number of updates: 10
  • Update frequency: every 15.2 days
  • Top authors: castellar120 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /674 total downloads

Benchmarks

Plugin footprint 65% 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.97MB] [CPU: ▼36.70ms] Passed 4 tests

A check of server-side resources used by Proverbs
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.00 ▼0.4620.44 ▼19.23
Dashboard /wp-admin3.06 ▼0.2924.69 ▼31.73
Posts /wp-admin/edit.php3.06 ▼0.3024.40 ▼22.84
Add New Post /wp-admin/post-new.php3.06 ▼2.8323.72 ▼72.98
Media Library /wp-admin/upload.php3.06 ▼0.1723.04 ▼10.40
Add New /wp-admin/post-new.php?post_type=proverb3.0624.36
Proverb categories /wp-admin/edit-tags.php?taxonomy=proverb_category&post_type=proverb3.0623.55
Proverbs /wp-admin/edit.php?post_type=proverb3.0624.78

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
proverb_category_children
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Proverbs: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,950 ▲20413.96 ▼0.659.53 ▲7.6335.97 ▼4.09
Dashboard /wp-admin2,241 ▲594.82 ▼1.04113.96 ▼10.2040.70 ▼5.49
Posts /wp-admin/edit.php2,124 ▲352.02 ▲0.0140.22 ▼2.8935.72 ▲0.27
Add New Post /wp-admin/post-new.php1,543 ▲1022.22 ▼0.84659.58 ▼16.6853.54 ▼13.75
Media Library /wp-admin/upload.php1,420 ▲324.20 ▼0.09108.16 ▲8.4350.38 ▲5.91
Add New /wp-admin/post-new.php?post_type=proverb1,7713.6463.0332.00
Proverb categories /wp-admin/edit-tags.php?taxonomy=proverb_category&post_type=proverb1,4552.1427.7731.43
Proverbs /wp-admin/edit.php?post_type=proverb3,6532.0837.1736.64

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • proverb_category_children

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 180 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=proverb
    • > POST request to /wp-admin/admin-ajax.php
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.

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 take a closer look at the following
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/proverbs/public/partials/proverbs-public-display.php
    • > /wp-content/plugins/proverbs/admin/partials/proverbs-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
No tags were detected

proverbs/proverbs.php 92% from 13 tests

"Proverbs" version 2.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 506 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,012 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP151751,267889
JavaScript3246195
CSS37828

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.28
Average class complexity9.40
▷ Minimum class complexity1.00
▷ Maximum class complexity66.00
Average method complexity2.05
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods80
▷ Static methods33.75%
▷ Public methods7290.00%
▷ Protected methods00.00%
▷ Private methods810.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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