83% simple-portfoliox

Code Review | Simple PortfolioX

WordPress plugin Simple PortfolioX scored83%from 54 tests.

About plugin

  • Plugin page: simple-portfoliox
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.4.2
  • WordPress version: 6.3.1
  • First release: Mar 30, 2016
  • Latest release: May 3, 2016
  • Number of updates: 20
  • Update frequency: every 6.0 days
  • Top authors: firmansyahm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /582 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

Server-side resources used by Simple PortfolioX
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.42 ▼0.0426.29 ▼9.48
Dashboard /wp-admin3.34 ▼0.0048.54 ▼12.53
Posts /wp-admin/edit.php3.40 ▲0.0446.58 ▲1.14
Add New Post /wp-admin/post-new.php5.93 ▲0.04101.63 ▲16.33
Media Library /wp-admin/upload.php3.27 ▲0.0437.08 ▼19.30
Add New /wp-admin/post-new.php?post_type=portfoliox3.4258.21
Category /wp-admin/edit-tags.php?taxonomy=portfoliox_category&post_type=portfoliox3.2638.48
Tags /wp-admin/edit-tags.php?taxonomy=portofoliox_taxonomy&post_type=portfoliox3.2631.85
All Portfolio /wp-admin/edit.php?post_type=portfoliox3.3133.77

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Simple PortfolioX
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,009 ▲24813.89 ▼0.3810.86 ▲9.1463.59 ▲21.70
Dashboard /wp-admin2,227 ▲475.55 ▼0.1095.04 ▲4.9342.50 ▼0.20
Posts /wp-admin/edit.php2,135 ▲351.97 ▼0.0234.88 ▼0.1032.07 ▼5.39
Add New Post /wp-admin/post-new.php1,555 ▲2923.19 ▲0.04652.19 ▼151.9058.26 ▼1.73
Media Library /wp-admin/upload.php1,435 ▲384.14 ▼0.02109.60 ▼51.0745.94 ▼21.63
Add New /wp-admin/post-new.php?post_type=portfoliox2,4307.56176.8867.57
Category /wp-admin/edit-tags.php?taxonomy=portfoliox_category&post_type=portfoliox1,3062.1227.3431.83
Tags /wp-admin/edit-tags.php?taxonomy=portofoliox_taxonomy&post_type=portfoliox1,3062.1226.2729.16
All Portfolio /wp-admin/edit.php?post_type=portfoliox1,1081.9629.4131.53

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

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

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× 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/simple-portfoliox/simple_portfolioX.php:54
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/simple-portfoliox/templates/single-portfolio.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes: You can take inspiration from this readme.txt

simple-portfoliox/simple_portfolioX.php 85% from 13 tests

This is the main PHP file of "Simple PortfolioX" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-portfoliox.php" instead of "simple_portfolioX.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
Success! There were no dangerous files found in this plugin990 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS39619618
PHP23519260
JavaScript2111460
Markdown112028
SVG10024

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin