90% portfolium

Code Review | Portfolium

WordPress plugin Portfolium scored90%from 54 tests.

About plugin

  • Plugin page: portfolium
  • Plugin version: 1.4
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9
  • WordPress version: 6.3.1
  • First release: Mar 18, 2015
  • Latest release: Feb 3, 2018
  • Number of updates: 21
  • Update frequency: every 50.1 days
  • Top authors: ramiy (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active /1,884 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.69ms] Passed 4 tests

A check of server-side resources used by Portfolium
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.30 ▼5.55
Dashboard /wp-admin3.32 ▲0.0144.15 ▼4.11
Posts /wp-admin/edit.php3.37 ▲0.0145.38 ▼4.36
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.31 ▼4.73
Media Library /wp-admin/upload.php3.24 ▲0.0133.62 ▼1.08

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Portfolium
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.25 ▼1.331.96 ▲0.2343.44 ▼3.62
Dashboard /wp-admin2,203 ▲185.82 ▲0.9595.12 ▼9.9539.39 ▼4.40
Posts /wp-admin/edit.php2,086 ▼32.02 ▲0.0436.71 ▼5.6033.24 ▼6.07
Add New Post /wp-admin/post-new.php1,514 ▼1917.68 ▼5.34630.53 ▼37.4257.69 ▲8.25
Media Library /wp-admin/upload.php1,382 ▼34.21 ▼0.0198.20 ▲0.2143.24 ▲1.11

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: projects, oembed, students, embed, portfolio...

portfolium/portfolium.php Passed 13 tests

The principal PHP file in "Portfolium" v. 1.4 is loaded by WordPress automatically on each request
84 characters long description:
Embed projects, skills and experiences from Portfolium.com into your WordPress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin44 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP5286344

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
3 PNG files occupy 0.32MB with 0.22MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png28.80KB9.25KB▼ 67.88%
screenshot-1.png25.37KB7.99KB▼ 68.51%
screenshot-2.png277.61KB90.81KB▼ 67.29%