78% wp-project-essentials

Code Review | WP Project Essentials

WordPress plugin WP Project Essentials scored78%from 54 tests.

About plugin

  • Plugin page: wp-project-essent...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Mar 24, 2020
  • Latest release: Feb 14, 2023
  • Number of updates: 5
  • Update frequency: every 211.4 days
  • Top authors: harisrozak (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /702 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.79ms] Passed 4 tests

Server-side resources used by WP Project Essentials
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.87 ▼7.03
Dashboard /wp-admin3.33 ▲0.0351.91 ▼1.17
Posts /wp-admin/edit.php3.39 ▲0.0346.33 ▲0.73
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.99 ▼14.80
Media Library /wp-admin/upload.php3.26 ▲0.0336.40 ▼0.17
Project Essentials /wp-admin/options-general.php?page=wp-project-essentials3.2939.82

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Project Essentials
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.28 ▲0.071.67 ▼0.3341.69 ▼8.24
Dashboard /wp-admin2,202 ▲225.54 ▼0.1688.76 ▼1.8338.77 ▼0.69
Posts /wp-admin/edit.php2,104 ▲12.14 ▲0.1535.61 ▼5.1834.69 ▼5.05
Add New Post /wp-admin/post-new.php1,529 ▼2517.45 ▼1.05668.96 ▲5.8659.18 ▲5.02
Media Library /wp-admin/upload.php1,401 ▲44.21 ▼0.00101.94 ▼1.4445.91 ▲2.34
Project Essentials /wp-admin/options-general.php?page=wp-project-essentials1,4423.7362.9238.00

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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
Please take a closer look at the following
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-project-essentials/about/modal-other-plugins.php
    • > /wp-content/plugins/wp-project-essentials/about/about-html.php
    • > /wp-content/plugins/wp-project-essentials/about/modal-about-us.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/wp-project-essentials/about/admin-enqueue-script.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3 in wp-project-essentials/assets to your readme.txt
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

wp-project-essentials/wp-project-essentials.php Passed 13 tests

"WP Project Essentials" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
98 characters long description:
A plugin that gather many minor admin-side customization that often needed for a WordPress project

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,394 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP19169103826
CSS44311568

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity5.00
▷ Minimum class complexity2.00
▷ Maximum class complexity11.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods1487.50%
▷ Protected methods00.00%
▷ Private methods212.50%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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
2 PNG files occupy 0.42MB with 0.28MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
about/assets/about-image.png364.66KB95.69KB▼ 73.76%
assets/logo.png61.35KB23.10KB▼ 62.34%