90% genesis-simple-page-sections

Code Review | Genesis Simple Page Sections

WordPress plugin Genesis Simple Page Sections scored90%from 54 tests.

About plugin

  • Plugin page: genesis-simple-pa...
  • Plugin version: 1.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1
  • WordPress version: 6.3.1
  • First release: Jan 19, 2014
  • Latest release: Mar 8, 2019
  • Number of updates: 11
  • Update frequency: every 170.4 days
  • Top authors: Doug Yuen (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

400+ active /9,843 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by Genesis Simple Page Sections
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.60 ▼4.15
Dashboard /wp-admin3.34 ▼0.0048.08 ▼18.02
Posts /wp-admin/edit.php3.45 ▲0.1048.96 ▼1.17
Add New Post /wp-admin/post-new.php5.92 ▲0.0393.47 ▼11.01
Media Library /wp-admin/upload.php3.26 ▲0.0337.86 ▲0.25

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Genesis Simple Page Sections
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.72 ▲0.372.45 ▲0.6645.54 ▲1.28
Dashboard /wp-admin2,195 ▲285.63 ▼0.0492.11 ▼22.2844.39 ▲2.93
Posts /wp-admin/edit.php2,100 ▼32.03 ▲0.0640.31 ▲2.5238.28 ▲5.83
Add New Post /wp-admin/post-new.php1,526 ▼023.51 ▲0.51669.13 ▲0.0863.63 ▲5.88
Media Library /wp-admin/upload.php1,403 ▲34.17 ▼0.06100.63 ▼0.2345.32 ▲3.40

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
5 plugin tags: page sections, genesiswp, genesis, studiopress, shortcode

genesis-simple-page-sections/genesis-simple-page-sections.php Passed 13 tests

The principal PHP file in "Genesis Simple Page Sections" v. 1.4.0 is loaded by WordPress automatically on each request
91 characters long description:
Easily make full width page sections in Genesis. Must be using the Genesis theme framework.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin206 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP64461169
CSS11137

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity7.33
▷ Minimum class complexity2.00
▷ Maximum class complexity16.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods1684.21%
▷ Protected methods00.00%
▷ Private methods315.79%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin