10% portfolio-perfect

Code Review | perfectPortfolioHelper

WordPress plugin perfectPortfolioHelper scored 10% from 54 tests.

About plugin

  • Plugin page: portfolio-perfect
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.7+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8.0-4.9.7
  • WordPress version: 6.3.1
  • First release: Sep 14, 2018
  • Latest release: Sep 14, 2018
  • Number of updates: 5
  • Update frequency: every 1.6 days
  • Top authors: sakisbal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 614 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • This plugin did not install gracefully
    • > User deprecated in wp-includes/functions.php+5453
    Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.

Server metrics [RAM: ▲0.08MB] [CPU: ▼2.78ms] Passed 4 tests

An overview of server-side resources used by perfectPortfolioHelper
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1144.54 ▲2.90
Dashboard /wp-admin3.38 ▲0.0845.74 ▼6.91
Posts /wp-admin/edit.php3.44 ▲0.0847.87 ▲3.53
Add New Post /wp-admin/post-new.php5.97 ▲0.0885.00 ▼10.65
Media Library /wp-admin/upload.php3.31 ▲0.0836.98 ▲6.12
Add New /wp-admin/post-new.php?post_type=portfolio3.4552.24
Portfolio /wp-admin/edit.php?post_type=portfolio3.4143.48
Category /wp-admin/edit-tags.php?taxonomy=portfolio_categories&post_type=portfolio3.3031.19

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

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

Browser metrics Passed 4 tests

Checking browser requirements for perfectPortfolioHelper
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲9914.41 ▲0.101.71 ▼0.1537.96 ▼5.35
Dashboard /wp-admin2,240 ▲524.86 ▼1.0397.69 ▼19.0041.39 ▼5.38
Posts /wp-admin/edit.php2,120 ▲312.06 ▲0.0439.67 ▲5.0833.72 ▼0.27
Add New Post /wp-admin/post-new.php1,564 ▲3023.45 ▲0.11664.81 ▼11.7555.23 ▲5.73
Media Library /wp-admin/upload.php1,419 ▲314.20 ▲0.0093.40 ▼14.6441.76 ▼8.12
Add New /wp-admin/post-new.php?post_type=portfolio2,3207.72169.7964.40
Portfolio /wp-admin/edit.php?post_type=portfolio1,7972.0132.6531.48
Category /wp-admin/edit-tags.php?taxonomy=portfolio_categories&post_type=portfolio1,2902.1326.7429.87

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: comments, helper

portfolio-perfect/portfolioPerfectPlugin.php 85% from 13 tests

The primary PHP file in "perfectPortfolioHelper" version 1.1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("portfolio-perfect.php" instead of "portfolioPerfectPlugin.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin221 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP25421219
Markdown1102

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.56
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
No PNG images were found in this plugin