90% gn-customize-post-list

Code Review | GN Customize Post List

WordPress plugin GN Customize Post List scored90%from 54 tests.

About plugin

  • Plugin page: gn-customize-post...
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.4.29+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9.3-5.9.3
  • WordPress version: 6.3.1
  • First release: Jun 3, 2019
  • Latest release: Apr 29, 2022
  • Number of updates: 6
  • Update frequency: every 177.0 days
  • Top authors: wentbook (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /648 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼1.01ms] Passed 4 tests

A check of server-side resources used by GN Customize Post List
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0639.12 ▲4.31
Dashboard /wp-admin3.36 ▲0.0646.63 ▲2.55
Posts /wp-admin/edit.php3.42 ▲0.0647.08 ▲2.02
Add New Post /wp-admin/post-new.php5.94 ▲0.0680.87 ▼12.93
Media Library /wp-admin/upload.php3.29 ▲0.0638.88 ▲5.60
GN Customize Post List /wp-admin/options-general.php?page=gn-customize-post-list3.2630.27

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
gncpl_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for GN Customize Post List
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.18 ▼0.171.65 ▲0.1339.18 ▼5.31
Dashboard /wp-admin2,199 ▲295.59 ▼0.0391.26 ▼5.2139.17 ▼2.51
Posts /wp-admin/edit.php2,104 ▲42.02 ▲0.0033.08 ▼0.7534.78 ▼5.55
Add New Post /wp-admin/post-new.php1,531 ▲323.15 ▼0.29663.73 ▼5.0550.45 ▼5.70
Media Library /wp-admin/upload.php1,407 ▲74.13 ▼0.12110.33 ▲14.3846.84 ▲4.78
GN Customize Post List /wp-admin/options-general.php?page=gn-customize-post-list1,0132.6445.3237.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

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)
Everything seems fine, however this is by no means an exhaustive test

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

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === gn-customize-post-list === )
You can take inspiration from this readme.txt

gn-customize-post-list/gn-customize-post-list.php Passed 13 tests

The entry point to "GN Customize Post List" version 1.1.0 is a PHP file that has certain tags in its header comment area
56 characters long description:
You can customize the display items of the article list.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin308 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP34717307
JavaScript1011

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity53.00
▷ Minimum class complexity53.00
▷ Maximum class complexity53.00
Average method complexity5.73
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
No PNG images were found in this plugin