83% simple-wp-mixitup-portfolio

Code Review | Simple Wp Mixitup Portfolio

WordPress plugin Simple Wp Mixitup Portfolio scored83%from 54 tests.

About plugin

  • Plugin page: simple-wp-mixitup...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.7
  • WordPress version: 6.3.1
  • First release: Dec 24, 2018
  • Latest release: Jan 7, 2022
  • Number of updates: 8
  • Update frequency: every 138.9 days
  • Top authors: nayon46 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /733 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.60ms] Passed 4 tests

This is a short check of server-side resources used by Simple Wp Mixitup Portfolio
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.96 ▼1.72
Dashboard /wp-admin3.33 ▲0.0345.41 ▼3.45
Posts /wp-admin/edit.php3.38 ▲0.0345.44 ▼0.93
Add New Post /wp-admin/post-new.php5.91 ▲0.0382.50 ▼8.28
Media Library /wp-admin/upload.php3.26 ▲0.0337.47 ▲0.49
category /wp-admin/edit-tags.php?taxonomy=advanced_taxonomoy&post_type=simple-portfolio3.2533.39
add protfolio /wp-admin/post-new.php?post_type=simple-portfolio3.3849.73
Portfolio /wp-admin/edit.php?post_type=simple-portfolio3.3037.98

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Wp Mixitup Portfolio
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲14713.77 ▼0.778.62 ▲6.9939.02 ▼0.78
Dashboard /wp-admin2,226 ▲465.64 ▼0.0282.97 ▼7.4537.43 ▼4.15
Posts /wp-admin/edit.php2,131 ▲312.01 ▲0.0235.97 ▼0.7131.78 ▼8.62
Add New Post /wp-admin/post-new.php1,552 ▲2622.68 ▼0.61585.82 ▼12.6663.82 ▲8.65
Media Library /wp-admin/upload.php1,431 ▲314.20 ▼0.04101.50 ▼5.1344.97 ▼6.32
category /wp-admin/edit-tags.php?taxonomy=advanced_taxonomoy&post_type=simple-portfolio1,3082.1227.9327.42
add protfolio /wp-admin/post-new.php?post_type=simple-portfolio2,2927.58170.9560.44
Portfolio /wp-admin/edit.php?post_type=simple-portfolio1,0952.0637.0133.70

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

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

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
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-wp-mixitup-portfolio/Simple-Wp-Mixitup-Portfolio.php:13
    • > PHP Warning
      Unterminated comment starting line 3 in wp-content/plugins/simple-wp-mixitup-portfolio/index.php on line 3

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 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
  • Plugin Name: Please specify the plugin name on the first line ( === simple-wp-mixitup-portfolio === )
You can look at the official readme.txt

simple-wp-mixitup-portfolio/Simple-Wp-Mixitup-Portfolio.php 92% from 13 tests

Analyzing the main PHP file in "Simple Wp Mixitup Portfolio" version 1.0
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-wp-mixitup-portfolio.php" instead of "Simple-Wp-Mixitup-Portfolio.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin398 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS1476300
PHP229794
JavaScript24144

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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