84% project-portal

Code Review | Project Portal

WordPress plugin Project Portal scored84%from 54 tests.

About plugin

  • Plugin page: project-portal
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.0
  • WordPress version: 6.3.1
  • First release: Jun 30, 2022
  • Latest release: Jun 30, 2022
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: mohibbulla (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /209 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

A check of server-side resources used by Project Portal
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0344.38 ▲1.77
Dashboard /wp-admin3.33 ▲0.0254.93 ▲3.73
Posts /wp-admin/edit.php3.38 ▲0.0247.32 ▼0.72
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.46 ▼3.30
Media Library /wp-admin/upload.php3.25 ▲0.0237.45 ▲3.66
Add New /wp-admin/post-new.php?post_type=pp_project3.3948.42
Projects /wp-admin/edit.php?post_type=pp_project3.2938.82

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Project Portal
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.24 ▼0.131.90 ▼0.2443.86 ▼2.57
Dashboard /wp-admin2,225 ▲485.62 ▼0.0388.20 ▼4.6541.83 ▲0.40
Posts /wp-admin/edit.php2,127 ▲241.96 ▼0.0636.26 ▼6.0835.53 ▼3.19
Add New Post /wp-admin/post-new.php1,551 ▲2323.38 ▲0.13660.27 ▲55.5964.96 ▲7.76
Media Library /wp-admin/upload.php1,427 ▲274.14 ▼0.04112.07 ▲6.2247.60 ▲7.20
Add New /wp-admin/post-new.php?post_type=pp_project2,2857.51168.0872.05
Projects /wp-admin/edit.php?post_type=pp_project1,1001.9730.6130.29

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 detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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 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/project-portal/project-portal.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: portal, portfolio, project-portal, project managment, project

project-portal/project-portal.php 85% from 13 tests

"Project Portal" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "5.2")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Everything looks great! No dangerous files found in this plugin120 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12420120

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.43MB with 0.33MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/screenshort.PNG436.57KB95.90KB▼ 78.03%