89% content-sectioner

Code Review | Content Sectioner

WordPress plugin Content Sectioner scored89%from 54 tests.

About plugin

  • Plugin page: content-sectioner
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-4.6
  • WordPress version: 6.3.1
  • First release: Sep 3, 2016
  • Latest release: Sep 4, 2016
  • Number of updates: 6
  • Update frequency: every 5.3 days
  • Top authors: kirkbowers (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,067 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by Content Sectioner
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.00 ▼0.08
Dashboard /wp-admin3.31 ▲0.0041.21 ▼5.24
Posts /wp-admin/edit.php3.36 ▲0.0047.44 ▼2.07
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.30 ▼6.43
Media Library /wp-admin/upload.php3.23 ▲0.0035.09 ▼1.38

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Content Sectioner
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▲0.081.61 ▼0.0348.00 ▲4.23
Dashboard /wp-admin2,195 ▲185.64 ▲0.0091.00 ▼1.3135.64 ▼6.31
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0333.83 ▼4.9537.24 ▼0.94
Add New Post /wp-admin/post-new.php1,531 ▲523.32 ▲0.51600.32 ▼4.7060.46 ▼48.34
Media Library /wp-admin/upload.php1,394 ▼64.17 ▼0.0397.69 ▲0.3042.03 ▼2.40

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: developer, content formatting, content filtering

content-sectioner/ContentSectioner.php 85% from 13 tests

This is the main PHP file of "Content Sectioner" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 253 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("content-sectioner.php" instead of "ContentSectioner.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected147 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP134164147

PHP code Passed 2 tests

An overview 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.36
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods19.09%
▷ Public methods763.64%
▷ Protected methods218.18%
▷ Private methods218.18%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.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
There were not PNG files found in your plugin