90% portfolio-toolkit

Code Review | Portfolio Toolkit

WordPress plugin Portfolio Toolkit scored90%from 54 tests.

About plugin

  • Plugin page: portfolio-toolkit
  • Plugin version: 0.1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.4
  • WordPress version: 6.3.1
  • First release: Jun 13, 2015
  • Latest release: Mar 31, 2020
  • Number of updates: 13
  • Update frequency: every 134.9 days
  • Top authors: iamdmitrymayorov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /17,559 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼2.96ms] Passed 4 tests

A check of server-side resources used by Portfolio Toolkit
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1447.38 ▲1.21
Dashboard /wp-admin3.43 ▲0.1351.34 ▼0.02
Posts /wp-admin/edit.php3.55 ▲0.2051.40 ▲2.03
Add New Post /wp-admin/post-new.php6.18 ▲0.2987.92 ▼14.07
Media Library /wp-admin/upload.php3.36 ▲0.1336.12 ▲1.06
Portfolio Tags /wp-admin/edit-tags.php?taxonomy=portfolio-tag&post_type=portfolio3.3534.46
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=portfolio3.3537.65
Add New /wp-admin/post-new.php?post_type=portfolio6.1889.61
All Projects /wp-admin/edit.php?post_type=portfolio3.4040.46

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Portfolio Toolkit
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,865 ▲11913.56 ▼0.892.04 ▲0.1445.47 ▼8.27
Dashboard /wp-admin2,243 ▲584.83 ▼0.9999.68 ▼18.8338.73 ▼5.55
Posts /wp-admin/edit.php2,129 ▲372.04 ▼0.0136.29 ▼8.8835.97 ▼2.94
Add New Post /wp-admin/post-new.php1,569 ▲3818.43 ▼0.22606.32 ▼41.0851.90 ▼6.18
Media Library /wp-admin/upload.php1,425 ▲464.16 ▼0.0298.36 ▼3.6943.84 ▼3.15
Portfolio Tags /wp-admin/edit-tags.php?taxonomy=portfolio-tag&post_type=portfolio1,2682.1428.4928.56
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=portfolio1,2962.1326.4828.34
Add New /wp-admin/post-new.php?post_type=portfolio1,58816.82868.9739.91
All Projects /wp-admin/edit.php?post_type=portfolio1,1651.9431.2033.17

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • 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
Even though no errors were found, this is by no means an exhaustive test

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 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
3 plugin tags: cpt, post type, portfolio

portfolio-toolkit/portfolio-toolkit.php Passed 13 tests

This is the main PHP file of "Portfolio Toolkit" version 0.1.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
55 characters long description:
Adds portfolio functionality to your WordPress website.

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 plugin411 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP11119499375
CSS19636

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.53
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods30
▷ Static methods26.67%
▷ Public methods2480.00%
▷ Protected methods00.00%
▷ Private methods620.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin