84% portfolio-5000

Code Review | Portfolio 5000

WordPress plugin Portfolio 5000 scored 84% from 54 tests.

About plugin

  • Plugin page: portfolio-5000
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Jul 10, 2014
  • Latest release: Jul 10, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: mwhittenberger (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 756 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.09MB] [CPU: ▼4.97ms] Passed 4 tests

A check of server-side resources used by Portfolio 5000
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1037.68 ▼3.22
Dashboard /wp-admin3.39 ▲0.0945.79 ▼4.56
Posts /wp-admin/edit.php3.44 ▲0.0948.54 ▲0.95
Add New Post /wp-admin/post-new.php5.98 ▲0.0984.44 ▼13.05
Media Library /wp-admin/upload.php3.31 ▲0.0838.11 ▲2.34
Add New /wp-admin/post-new.php?post_type=p50003.4345.70
Skills Used /wp-admin/edit-tags.php?taxonomy=skills_used&post_type=p50003.3129.04
Portfolio 5000 Project Types /wp-admin/edit-tags.php?taxonomy=project_types&post_type=p50003.3133.87
All Projects /wp-admin/edit.php?post_type=p50003.3633.86

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Portfolio 5000: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,868 ▲13313.20 ▼1.181.91 ▲0.1640.30 ▼3.59
Dashboard /wp-admin2,247 ▲565.84 ▲0.9697.08 ▼6.7477.22 ▲34.89
Posts /wp-admin/edit.php2,124 ▲352.01 ▼0.0334.58 ▼5.4432.73 ▼5.82
Add New Post /wp-admin/post-new.php1,555 ▲2723.13 ▲4.92674.44 ▲77.2555.93 ▼0.31
Media Library /wp-admin/upload.php1,426 ▲354.11 ▼0.0793.98 ▼7.3482.04 ▲33.45
Add New /wp-admin/post-new.php?post_type=p50002,3757.77176.95128.79
Skills Used /wp-admin/edit-tags.php?taxonomy=skills_used&post_type=p50001,2692.2923.7628.21
Portfolio 5000 Project Types /wp-admin/edit-tags.php?taxonomy=project_types&post_type=p50001,2692.1424.7929.26
All Projects /wp-admin/edit.php?post_type=p50001,1191.9531.9929.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/portfolio-5000/portfolio-5000.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: web developer, gallery, web designer, slider, portfolio

portfolio-5000/portfolio-5000.php 92% from 13 tests

Analyzing the main PHP file in "Portfolio 5000" version 1.0.1
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 166 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected385 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14424200
CSS1541184
XML1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
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
portfolio5000-icon.png1.64KB0.77KB▼ 53.28%