Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/content-repeater/includes/functions.php+88
Undefined index: page
Server metrics [RAM: ▼1.51MB] [CPU: ▼311.32ms] Passed 4 tests
An overview of server-side resources used by Content Repeater - Custom Posts Simplified
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.11 ▼0.72 | 7.01 ▼23.24 |
Dashboard /wp-admin | 2.13 ▼0.92 | 9.04 ▼41.28 |
Posts /wp-admin/edit.php | 2.13 ▼0.97 | 7.63 ▼31.14 |
Add New Post /wp-admin/post-new.php | 2.13 ▼3.30 | 7.85 ▼1,144.37 |
Media Library /wp-admin/upload.php | 2.13 ▼0.87 | 7.57 ▼28.49 |
Server storage [IO: ▲0.82MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 77 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Content Repeater - Custom Posts Simplified
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,804 ▲224 | 16.89 ▲1.36 | 14.15 ▲4.85 | 46.57 ▲2.61 |
Dashboard /wp-admin | 2,956 ▲110 | 5.89 ▲0.10 | 134.29 ▲2.67 | 101.63 ▼5.63 |
Posts /wp-admin/edit.php | 2,732 ▲26 | 2.70 ▲0.01 | 66.99 ▼1.51 | 91.29 ▼3.37 |
Add New Post /wp-admin/post-new.php | 1,670 ▲19 | 17.40 ▲0.12 | 357.49 ▼4.47 | 113.94 ▲5.52 |
Media Library /wp-admin/upload.php | 1,795 ▲23 | 5.01 ▲0.01 | 140.38 ▼21.89 | 106.93 ▼12.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/content-repeater/includes/functions.php+88
Undefined index: page
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please take a closer look at the following
- 7× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/content-repeater/templates/before-after.php
- > /wp-content/plugins/content-repeater/templates/products.php
- > /wp-content/plugins/content-repeater/templates/flipboxes.php
- > /wp-content/plugins/content-repeater/templates/testimonials.php
- > /wp-content/plugins/content-repeater/templates/portfolio.php
- > /wp-content/plugins/content-repeater/templates/portals.php
- > /wp-content/plugins/content-repeater/templates/coupons.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Rptr_Class' not found in wp-content/plugins/content-repeater/includes/rename-fields.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-repeater/includes/duplicate-post.php:106
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-repeater/includes/publish-and-new.php:2
- > PHP Fatal error
Uncaught Error: Class 'Rptr_Class' not found in wp-content/plugins/content-repeater/includes/export-import-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/content-repeater/includes/conditional.php:113
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
content-repeater/content-repeater.php Passed 13 tests
The entry point to "Content Repeater - Custom Posts Simplified" version 1.1.13 is a PHP file that has certain tags in its header comment area
83 characters long description:
A tool to quickly set up custom content types and display them in interesting ways.
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
No dangerous file extensions were detected14,731 lines of code in 66 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 23 | 1,146 | 764 | 8,590 |
PHP | 24 | 393 | 523 | 3,378 |
CSS | 11 | 244 | 122 | 2,079 |
Sass | 2 | 27 | 5 | 262 |
HTML | 2 | 20 | 22 | 248 |
LESS | 1 | 11 | 5 | 152 |
SVG | 2 | 1 | 0 | 14 |
Ruby | 1 | 2 | 0 | 8 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 26.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 156.00 |
Average method complexity | 3.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 75 | |
▷ Static methods | 55 | 73.33% |
▷ Public methods | 75 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 55 | |
▷ Named functions | 34 | 61.82% |
▷ Anonymous functions | 21 | 38.18% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/paypal-button-buy-now.png | 23.34KB | 8.82KB | ▼ 62.20% |
assets/photoswipe/default-skin/default-skin.png | 0.53KB | 0.72KB | 0.00% |
assets/img/payment-cards.png | 12.33KB | 4.95KB | ▼ 59.83% |