72% project-description

Code Review | Project description

WordPress plugin Project description scored 72% from 54 tests.

About plugin

  • Plugin page: project-description
  • Plugin version: 0.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-4.8.0
  • WordPress version: 6.3.1
  • First release: Apr 22, 2017
  • Latest release: Jun 3, 2017
  • Number of updates: 5
  • Update frequency: every 11.4 days
  • Top authors: kantoniak (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 698 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

Server-side resources used by Project description
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.39 ▼4.74
Dashboard /wp-admin3.31 ▲0.0145.01 ▼5.15
Posts /wp-admin/edit.php3.36 ▲0.0049.14 ▼0.67
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.42 ▼3.51
Media Library /wp-admin/upload.php3.23 ▲0.0033.39 ▲2.92
Project description /wp-admin/options-general.php?page=project-description3.2333.06

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Project description
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲3513.24 ▼1.131.51 ▼0.5238.54 ▼7.62
Dashboard /wp-admin2,207 ▲194.88 ▼0.04111.37 ▲0.6939.89 ▼4.87
Posts /wp-admin/edit.php2,096 ▲41.99 ▼0.0139.08 ▲0.1640.39 ▲5.30
Add New Post /wp-admin/post-new.php1,523 ▲423.31 ▲0.03668.11 ▼53.3362.97 ▲8.75
Media Library /wp-admin/upload.php1,395 ▲74.11 ▼0.18110.01 ▲15.7440.19 ▲0.20
Project description /wp-admin/options-general.php?page=project-description1,6176.58133.7561.02

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
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=project-description
    • > Notice in wp-content/plugins/project-description/template-settings.php+5
    Undefined variable: settingsUpdated

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/project-description/template-box.php
  • 9× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function kantoniak\\is_admin() in wp-content/plugins/project-description/kantoniak-project-description.php:33
    • > PHP Notice
      Undefined variable: jumpEnabled in wp-content/plugins/project-description/template-box.php on line 4
    • > PHP Notice
      Undefined variable: settingsUpdated in wp-content/plugins/project-description/template-settings.php on line 5
    • > PHP Notice
      Undefined variable: showFromCat in wp-content/plugins/project-description/template-box.php on line 11
    • > PHP Notice
      Undefined variable: boxTitle in wp-content/plugins/project-description/template-box.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_dropdown_categories() in wp-content/plugins/project-description/template-settings.php:21
    • > PHP Notice
      Undefined variable: boxContents in wp-content/plugins/project-description/template-box.php on line 9
    • > PHP Notice
      Undefined variable: noCategorySelected in wp-content/plugins/project-description/template-settings.php on line 9
    • > PHP Notice
      Undefined variable: jumpEnabled in wp-content/plugins/project-description/template-box.php on line 24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: preview, project, category page, project description

project-description/kantoniak-project-description.php 92% from 13 tests

This is the main PHP file of "Project description" version 0.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("project-description.php" instead of "kantoniak-project-description.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected223 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP33010213
CSS10010

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.88
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods675.00%
▷ Protected methods225.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants00.00%
▷ Class constants13100.00%
▷ Public constants13100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin