10% gna-cate-list

Code Review | GNA Cate List

WordPress plugin GNA Cate List scored10%from 54 tests.

About plugin

  • Plugin page: gna-cate-list
  • Plugin version: 0.9.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.7
  • WordPress version: 6.3.1
  • First release: Jan 22, 2016
  • Latest release: Sep 5, 2016
  • Number of updates: 21
  • Update frequency: every 15.6 days
  • Top authors: chris_dev (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /1,390 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method GNA_CateList::activate_handler() should not be called statically

Server metrics [RAM: ▲0.02MB] [CPU: ▼12.24ms] Passed 4 tests

An overview of server-side resources used by GNA Cate List
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.02 ▼5.69
Dashboard /wp-admin3.34 ▼0.0148.06 ▼17.93
Posts /wp-admin/edit.php3.39 ▲0.0353.36 ▲0.87
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.72 ▼26.19
Media Library /wp-admin/upload.php3.26 ▲0.0337.18 ▲2.65

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

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

Browser metrics Passed 4 tests

Checking browser requirements for GNA Cate List
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲7114.44 ▼0.181.58 ▼0.3039.58 ▼8.41
Dashboard /wp-admin2,221 ▲185.83 ▲0.96101.78 ▼16.3540.42 ▼3.88
Posts /wp-admin/edit.php2,097 ▼31.99 ▼0.0336.69 ▼1.0434.44 ▼3.79
Add New Post /wp-admin/post-new.php1,547 ▲1623.58 ▲0.31691.43 ▲15.4255.38 ▲2.38
Media Library /wp-admin/upload.php1,397 ▼04.30 ▲0.0799.88 ▼18.3648.74 ▼0.52

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
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method GNA_CateList::deactivate_handler() should not be called statically
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/gna-cate-list/gna-cate-list-core.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Donate link: Invalid url: "none"
The official readme.txt might help

gna-cate-list/gna-cate-list.php Passed 13 tests

This is the main PHP file of "GNA Cate List" version 0.9.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
52 characters long description:
[catelist] shortcode for any pages, posts or widgets

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
Good job! No executable or dangerous file extensions detected150 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23012146
CSS1004

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.47
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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 images were found in this plugin