90% set-yoast-to-bottom

Code Review | Set Yoast to Bottom

WordPress plugin Set Yoast to Bottom scored90%from 54 tests.

About plugin

  • Plugin page: set-yoast-to-bottom
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 31, 2017
  • Latest release: Oct 31, 2017
  • Number of updates: 5
  • Update frequency: every 27.8 days
  • Top authors: jspellman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /758 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Analyzing server-side resources used by Set Yoast to Bottom
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.16 ▼9.21
Dashboard /wp-admin3.31 ▲0.0149.68 ▼4.03
Posts /wp-admin/edit.php3.36 ▲0.0049.07 ▼4.82
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.45 ▼25.93
Media Library /wp-admin/upload.php3.23 ▲0.0041.03 ▲2.99

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Set Yoast to Bottom
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.20 ▼0.511.75 ▲0.1340.63 ▼2.13
Dashboard /wp-admin2,189 ▲125.61 ▼0.0589.09 ▲0.3944.20 ▲3.05
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0135.70 ▼2.5433.85 ▼3.41
Add New Post /wp-admin/post-new.php1,528 ▼2122.99 ▲4.66692.00 ▲59.3151.50 ▼15.43
Media Library /wp-admin/upload.php1,400 ▲64.24 ▲0.05100.23 ▲1.7743.82 ▼2.33

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
5 plugin tags: meta box, yoast, admin, custom fields, plugin

set-yoast-to-bottom/set-yoast-to-bottom.php Passed 13 tests

The primary PHP file in "Set Yoast to Bottom" version 1.0 is used by WordPress to initiate all plugin functionality
56 characters long description:
Set Yoast meta box priority as low, after custom fields.

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 plugin9 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2269

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected