Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/project-by-parseh/project.php+458
Function create_function() is deprecated
Server metrics [RAM: ▼1.94MB] [CPU: ▼52.11ms] Passed 4 tests
Analyzing server-side resources used by Projects by Parseh
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.42 | 5.44 ▼36.62 |
Dashboard /wp-admin | 2.07 ▼1.24 | 7.36 ▼43.62 |
Posts /wp-admin/edit.php | 2.07 ▼1.29 | 7.09 ▼45.78 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.82 | 6.95 ▼82.40 |
Media Library /wp-admin/upload.php | 2.07 ▼1.16 | 5.63 ▼26.46 |
دسته بندی /wp-admin/edit-tags.php?taxonomy=projects_category&post_type=projects | 2.07 | 5.38 |
تنظیمات /wp-admin/edit.php?post_type=projects&page=projects-settings | 2.07 | 6.74 |
همه پروژه ها /wp-admin/edit.php?post_type=projects | 2.07 | 5.59 |
افزودن پروژه جدید /wp-admin/post-new.php?post_type=projects | 2.07 | 6.30 |
Server storage [IO: ▲2.30MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 75 new files
Database: no new tables, 15 new options
New WordPress options |
---|
projects_website |
widget_project_widget |
projects_date |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
projects_gallery_type |
projects_client |
can_compress_scripts |
db_upgraded |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Projects by Parseh
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,085 ▲324 | 15.04 ▲0.66 | 7.60 ▲5.83 | 39.55 ▼10.27 |
Dashboard /wp-admin | 2,384 ▲210 | 6.31 ▲0.46 | 114.49 ▲12.16 | 46.63 ▲5.06 |
Posts /wp-admin/edit.php | 2,315 ▲215 | 3.45 ▲1.43 | 48.66 ▲11.58 | 36.43 ▲1.15 |
Add New Post /wp-admin/post-new.php | 1,595 ▲39 | 23.42 ▲5.14 | 676.20 ▲33.08 | 35.16 ▼24.28 |
Media Library /wp-admin/upload.php | 1,452 ▲49 | 4.28 ▲0.10 | 80.96 ▼19.97 | 46.61 ▲1.85 |
دسته بندی /wp-admin/edit-tags.php?taxonomy=projects_category&post_type=projects | 1,487 | 3.42 | 41.74 | 42.07 |
تنظیمات /wp-admin/edit.php?post_type=projects&page=projects-settings | 1,224 | 3.29 | 50.29 | 74.99 |
همه پروژه ها /wp-admin/edit.php?post_type=projects | 1,361 | 3.53 | 46.52 | 45.34 |
افزودن پروژه جدید /wp-admin/post-new.php?post_type=projects | 3,079 | 9.67 | 234.17 | 127.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/project-by-parseh/project.php+458
Function create_function() is deprecated
- This plugin did not uninstall successfully, leaving 15 options in the database
- projects_date
- theysaidso_admin_options
- projects_view
- projects_like
- projects_column
- widget_project_widget
- db_upgraded
- projects_website
- widget_recent-comments
- widget_recent-posts
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 5 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=projects
- > Deprecated in wp-content/plugins/project-by-parseh/project.php+458
Function create_function() is deprecated
- 5 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=projects
- > Warning in wp-content/plugins/project-by-parseh/metabox/init.php+747
count(): Parameter must be an array or an object that implements Countable
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/project-by-parseh/metabox/tests/phpunit/includes/bootstrap.php
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/project-by-parseh/setting.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/project-by-parseh/include/like.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/project-by-parseh/metabox/init.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/project-by-parseh/include/register-script.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/project-by-parseh/metabox/metabox-functions.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/project-by-parseh/metabox/tests/phpunit/tests/CMB_Core_Test.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/project-by-parseh/about.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/project-by-parseh/include/register-script.php:10
- > PHP Fatal error
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 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (The projects list page), #2 (A single project page), #3 (The projects management screen within the WordPress dashboard.), #4 (The new project page), #5 (Plugin settings page)
project-by-parseh/project.php 85% from 13 tests
The principal PHP file in "Projects by Parseh" v. 1.0.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("project-by-parseh.php" instead of "project.php")
- Description: The description should be shorter than 140 characters (currently 180 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected10,268 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 1,290 | 1,765 | 4,632 |
PHP | 15 | 634 | 1,133 | 2,404 |
SVG | 3 | 0 | 0 | 1,496 |
CSS | 8 | 176 | 62 | 1,339 |
Markdown | 3 | 83 | 0 | 272 |
Bourne Shell | 1 | 15 | 4 | 59 |
JSON | 1 | 0 | 0 | 31 |
YAML | 1 | 5 | 0 | 18 |
XML | 1 | 0 | 1 | 17 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 51.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 136.00 |
Average method complexity | 3.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 138 | |
▷ Static methods | 34 | 24.64% |
▷ Public methods | 136 | 98.55% |
▷ Protected methods | 2 | 1.45% |
▷ Private methods | 0 | 0.00% |
Functions | 32 | |
▷ Named functions | 32 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 2 | 66.67% |
▷ Class constants | 1 | 33.33% |
▷ Public constants | 1 | 100.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
15 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
metabox/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
metabox/images/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
metabox/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
metabox/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
css/img/icons.png | 0.71KB | 0.43KB | ▼ 39.64% |