78% developer-project-portfolio

Code Review | Developer project portfolio

WordPress plugin Developer project portfolio scored78%from 54 tests.

About plugin

  • Plugin page: developer-project...
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Nov 30, 2016
  • Latest release: Dec 1, 2016
  • Number of updates: 13
  • Update frequency: N/A
  • Top authors: crillst (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /845 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼5.02ms] Passed 4 tests

A check of server-side resources used by Developer project portfolio
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1338.07 ▼1.98
Dashboard /wp-admin3.42 ▲0.1145.92 ▼5.89
Posts /wp-admin/edit.php3.53 ▲0.1848.20 ▼1.75
Add New Post /wp-admin/post-new.php6.00 ▲0.1190.75 ▼10.45
Media Library /wp-admin/upload.php3.34 ▲0.1136.93 ▲2.12
All projects /wp-admin/edit.php?post_type=dpp_project3.3835.90
Tools & Technologies /wp-admin/edit-tags.php?taxonomy=dpp_tools&post_type=dpp_project3.3335.26
Add new /wp-admin/post-new.php?post_type=dpp_project3.4651.45
Platforms /wp-admin/edit-tags.php?taxonomy=dpp_platforms&post_type=dpp_project3.3332.55
Programming Languages /wp-admin/edit-tags.php?taxonomy=dpp_languages&post_type=dpp_project3.3333.78
Customer/Category /wp-admin/edit-tags.php?taxonomy=dpp_customers&post_type=dpp_project3.3334.72

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Developer project portfolio
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,854 ▲10813.62 ▼1.054.79 ▲2.8936.67 ▼6.08
Dashboard /wp-admin2,251 ▲604.84 ▼0.01103.99 ▼12.1338.06 ▼4.78
Posts /wp-admin/edit.php2,131 ▲422.03 ▲0.0434.85 ▼1.3133.03 ▼2.03
Add New Post /wp-admin/post-new.php1,565 ▲3223.23 ▲0.14617.81 ▼57.0549.82 ▼12.23
Media Library /wp-admin/upload.php1,436 ▲514.25 ▲0.0197.16 ▼6.4342.31 ▼0.00
All projects /wp-admin/edit.php?post_type=dpp_project1,0982.0232.9028.74
Tools & Technologies /wp-admin/edit-tags.php?taxonomy=dpp_tools&post_type=dpp_project1,2762.1325.2831.20
Add new /wp-admin/post-new.php?post_type=dpp_project2,6458.02181.6677.47
Platforms /wp-admin/edit-tags.php?taxonomy=dpp_platforms&post_type=dpp_project1,2762.1425.5326.30
Programming Languages /wp-admin/edit-tags.php?taxonomy=dpp_languages&post_type=dpp_project1,2762.1427.2228.34
Customer/Category /wp-admin/edit-tags.php?taxonomy=dpp_customers&post_type=dpp_project1,3102.1326.3635.45

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/developer-project-portfolio/templates/projects-listing.php
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/developer-project-portfolio/custom-post-types/project-links-metabox.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/developer-project-portfolio/custom-post-types/project-custom-post-type.php:33
    • > PHP Warning
      Invalid argument supplied for foreach() in wp-content/plugins/developer-project-portfolio/templates/projects-listing.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/developer-project-portfolio/templates/single-dpp_project.php:2
    • > PHP Notice
      Undefined variable: projects in wp-content/plugins/developer-project-portfolio/templates/projects-listing.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/developer-project-portfolio/custom-post-types/project-custom-post-type.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need your attention:
  • Donate link: Invalid URI ("")
You can take inspiration from this readme.txt

developer-project-portfolio/developer-project-portfolio.php Passed 13 tests

The principal PHP file in "Developer project portfolio" v. 0.2 is loaded by WordPress automatically on each request
117 characters long description:
Displays a project portfolio for visitors. Set customer, image, description, languages and platform for each 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
No dangerous file extensions were detected491 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP54126307
CSS216080
PO File1232362
JavaScript12031
Markdown111011

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity1.44
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods16
▷ Static methods212.50%
▷ Public methods1275.00%
▷ Protected methods00.00%
▷ Private methods425.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

PNG files should be compressed to save space and minimize bandwidth usage
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
editor/images/folder.png1.60KB0.45KB▼ 72.14%