78% project-guide

Code Review | Project Guide

WordPress plugin Project Guide scored78%from 54 tests.

About plugin

  • Plugin page: project-guide
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Nov 3, 2016
  • Latest release: Nov 9, 2016
  • Number of updates: 46
  • Update frequency: every 4.2 days
  • Top authors: oneside (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /957 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
Install script ran successfully

Server metrics [RAM: ▲0.19MB] [CPU: ▲3.59ms] Passed 4 tests

Analyzing server-side resources used by Project Guide
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1746.61 ▲3.97
Dashboard /wp-admin3.49 ▲0.1957.81 ▲4.62
Posts /wp-admin/edit.php3.59 ▲0.2358.94 ▲8.88
Add New Post /wp-admin/post-new.php6.09 ▲0.2091.30 ▼0.16
Media Library /wp-admin/upload.php3.41 ▲0.1844.76 ▲5.94
Builder /wp-admin/edit.php?post_type=projectguide&page=pgnavigation3.4141.83
Project Guide /wp-admin/index.php?page=projectguide3.3839.65
Settings /wp-admin/edit.php?post_type=projectguide&page=pgsettings3.3839.45
New Topic /wp-admin/post-new.php?post_type=projectguide3.5353.33
Project Guide /wp-admin/edit.php?post_type=projectguide3.4452.28

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Project Guide
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,854 ▲11913.41 ▼0.961.76 ▼0.0639.17 ▼6.79
Dashboard /wp-admin2,257 ▲656.06 ▲1.16114.64 ▼4.0986.69 ▲39.49
Posts /wp-admin/edit.php2,143 ▲542.07 ▲0.0340.25 ▲2.1535.06 ▼2.53
Add New Post /wp-admin/post-new.php1,712 ▲19822.81 ▲5.34780.17 ▲58.4844.16 ▼7.02
Media Library /wp-admin/upload.php1,433 ▲514.28 ▲0.11100.62 ▼5.7948.87 ▲4.28
Builder /wp-admin/edit.php?post_type=projectguide&page=pgnavigation9502.1828.0457.89
Project Guide /wp-admin/index.php?page=projectguide8452.0625.9542.78
Settings /wp-admin/edit.php?post_type=projectguide&page=pgsettings1,0082.1026.0750.86
New Topic /wp-admin/post-new.php?post_type=projectguide2,2197.77182.67128.80
Project Guide /wp-admin/edit.php?post_type=projectguide1,1152.0033.7531.94

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
The following issues need your attention
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/project-guide/project-guide.php
    • > /wp-content/plugins/project-guide/inc/admin.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/project-guide/inc/posttype.php:54

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can look at the official readme.txt

project-guide/project-guide.php Passed 13 tests

"Project Guide" version 1.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
71 characters long description:
Create a simple and awesome project guide in your WordPress admin area.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected2,630 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript31855331,004
CSS37514921
PHP4171152583
PO File14748108
Markdown112014

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/pg-logo-nav.png1.13KB0.18KB▼ 83.79%