10% gna-page-list

Code Review | GNA Page List

WordPress plugin GNA Page List scored10%from 54 tests.

About plugin

  • Plugin page: gna-page-list
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.7
  • WordPress version: 6.3.1
  • First release: Dec 26, 2015
  • Latest release: Sep 5, 2016
  • Number of updates: 26
  • Update frequency: every 13.7 days
  • Top authors: chris_dev (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /1,360 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method GNA_PageList::activate_handler() should not be called statically

Server metrics [RAM: ▼1.92MB] [CPU: ▼56.98ms] Passed 4 tests

Analyzing server-side resources used by GNA Page List
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.405.34 ▼38.15
Dashboard /wp-admin2.08 ▼1.224.71 ▼42.25
Posts /wp-admin/edit.php2.08 ▼1.276.23 ▼44.01
Add New Post /wp-admin/post-new.php2.08 ▼3.805.60 ▼103.52
Media Library /wp-admin/upload.php2.08 ▼1.145.18 ▼27.29

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

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

Browser metrics Passed 4 tests

A check of browser resources used by GNA Page List
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.25 ▼1.344.64 ▲2.8344.22 ▲5.25
Dashboard /wp-admin2,206 ▲185.90 ▼0.00108.94 ▼4.0243.17 ▲2.95
Posts /wp-admin/edit.php2,086 ▼31.97 ▼0.0038.98 ▼2.7835.45 ▼0.95
Add New Post /wp-admin/post-new.php1,533 ▲1923.05 ▲5.58601.74 ▼90.6163.24 ▲11.39
Media Library /wp-admin/upload.php1,388 ▼04.30 ▲0.0993.30 ▼16.4444.48 ▼2.58

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method GNA_PageList::init() should not be called statically
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gna-page-list/gna-page-list-core.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid url: "none"
The official readme.txt might help

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

The main PHP script in "GNA Page List" version 1.0.1 is automatically included on every request by WordPress
52 characters long description:
[pagelist] 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
Success! There were no dangerous files found in this plugin116 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22912116

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.15
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin