10% wp-projects-portfolio

Code Review | WP Projects Portfolio with Client Testimonials

WordPress plugin WP Projects Portfolio with Client Testimonials scored 10% from 54 tests.

About plugin

  • Plugin page: wp-projects-portf...
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-5.4.2
  • WordPress version: 5.8.1
  • First release: Aug 23, 2013
  • Latest release: Jul 9, 2020
  • Number of updates: 77
  • Update frequency: every 32.6 days
  • Top authors: phptechie (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

70+ active / 6,230 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/wp-projects-portfolio/wppcr-functions.php+1008
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼1.44MB] [CPU: ▼185.53ms] Passed 4 tests

This is a short check of server-side resources used by WP Projects Portfolio with Client Testimonials
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.19 ▼0.535.82 ▼16.25
Dashboard /wp-admin2.21 ▼0.857.45 ▼40.78
Posts /wp-admin/edit.php2.21 ▼0.906.00 ▼40.18
Add New Post /wp-admin/post-new.php2.21 ▼3.226.04 ▼632.68
Media Library /wp-admin/upload.php2.21 ▼0.796.16 ▼28.49
Projects /wp-admin/edit.php?post_type=wpprojects_portfolio2.216.99
Add Project /wp-admin/post-new.php?post_type=wpprojects_portfolio2.216.77
Project Tags /wp-admin/edit-tags.php?taxonomy=wpprojects_portfolio_tag&post_type=wpprojects_portfolio2.216.25
Options /wp-admin/edit.php?post_type=wpprojects_portfolio&page=wp-projects-portfolio2.215.99
Project Categories /wp-admin/edit-tags.php?taxonomy=wpprojects_portfolio_type&post_type=wpprojects_portfolio2.215.76

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 1 new option
New WordPress options
wpprojects_portfolio_type_children

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Projects Portfolio with Client Testimonials
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,899 ▲30316.43 ▲0.7813.54 ▲3.2551.00 ▲0.49
Dashboard /wp-admin3,047 ▲1106.22 ▲0.10147.93 ▼4.55115.97 ▲5.72
Posts /wp-admin/edit.php2,821 ▲822.74 ▲0.0379.89 ▲7.5988.51 ▼3.53
Add New Post /wp-admin/post-new.php1,739 ▲12418.23 ▼2.65383.68 ▲83.36106.64 ▼2.09
Media Library /wp-admin/upload.php1,815 ▲85.04 ▲0.01152.04 ▼4.70120.69 ▲2.08
Projects /wp-admin/edit.php?post_type=wpprojects_portfolio1,5812.6766.5493.41
Add Project /wp-admin/post-new.php?post_type=wpprojects_portfolio3,3299.50242.79153.54
Project Tags /wp-admin/edit-tags.php?taxonomy=wpprojects_portfolio_tag&post_type=wpprojects_portfolio1,7902.4265.6886.34
Options /wp-admin/edit.php?post_type=wpprojects_portfolio&page=wp-projects-portfolio1,1512.4161.2976.79
Project Categories /wp-admin/edit-tags.php?taxonomy=wpprojects_portfolio_type&post_type=wpprojects_portfolio1,8662.4269.7899.92

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/wp-projects-portfolio/wppcr-functions.php+1008
    Array and string offset access syntax with curly braces is deprecated
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • wpprojects_portfolio_type_children

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=wpprojects_portfolio_type&post_type=wpprojects_portfolio
    • > Deprecated in wp-content/plugins/wp-projects-portfolio/wppcr-functions.php+1008
    Array and string offset access syntax with curly braces is deprecated

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-projects-portfolio/wppcr-functions.php:114
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-projects-portfolio/single-wp-projects-portfolio.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/wp-projects-portfolio/loop-wppcr-portfolio.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-projects-portfolio/wppcr-functions.php:114

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
    • > GET request to /wp-admin/edit.php?post_type=wpprojects_portfolio
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1 1:31592 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'model')" "TypeError: Cannot read properties of undefined (reading 'model')\n at HTMLDocument.\u003Canonymous> (/wp-admin/edit.php?post_type=wpprojects_portfolio:271:36)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30340)" undefined
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=wpprojects_portfolio_type&post_type=wpprojects_portfolio
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1 1:31702 Uncaught TypeError: Cannot read properties of undefined (reading 'model')
    • > GET request to /wp-admin/edit-tags.php?taxonomy=wpprojects_portfolio_tag&post_type=wpprojects_portfolio
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1 1:31592 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'model')" "TypeError: Cannot read properties of undefined (reading 'model')\n at HTMLDocument.\u003Canonymous> (/wp-admin/edit-tags.php?taxonomy=wpprojects_portfolio_tag&post_type=wpprojects_portfolio:359:36)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30340)" undefined
    • > GET request to /wp-admin/edit.php?post_type=wpprojects_portfolio&page=wp-projects-portfolio
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1 1:31592 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'model')" "TypeError: Cannot read properties of undefined (reading 'model')\n at HTMLDocument.\u003Canonymous> (/wp-admin/edit.php?post_type=wpprojects_portfolio&page=wp-projects-portfolio:190:36)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30340)" undefined
    • > GET request to /wp-admin/edit-tags.php?taxonomy=wpprojects_portfolio_type&post_type=wpprojects_portfolio
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1 1:31592 "jQuery.Deferred exception: Cannot read properties of undefined (reading 'model')" "TypeError: Cannot read properties of undefined (reading 'model')\n at HTMLDocument.\u003Canonymous> (/wp-admin/edit-tags.php?taxonomy=wpprojects_portfolio_type&post_type=wpprojects_portfolio:367:36)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30340)" undefined

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% 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
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png), #4 (screenshot-4.png), #5 (screenshot-5.png), #6 (screenshot-6.png), #7 (screenshot-7.png)
You can take inspiration from this readme.txt

wp-projects-portfolio/wpp-crportfolio.php 85% from 13 tests

The main file in "WP Projects Portfolio with Client Testimonials" v. 3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 150 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-projects-portfolio.php" instead of "wpp-crportfolio.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected2,168 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP45311781,492
CSS55122495
JavaScript56925181

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions60
▷ Named functions60100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
8 PNG files occupy 0.17MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/switch.png2.66KB2.01KB▼ 24.54%
images/switch_container_on.png1.84KB0.36KB▼ 80.24%
images/verify-button.png37.64KB0.99KB▼ 97.38%
images/submit-client-rec.png33.52KB1.48KB▼ 95.57%
images/tick-wpp-icon.png30.58KB1.56KB▼ 94.90%