Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.20MB] [CPU: ▼142.45ms] Passed 4 tests
Analyzing server-side resources used by AllTheContent
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.04 | 31.97 ▼4.52 |
Dashboard /wp-admin | 3.36 ▲0.30 | 51.07 ▲11.56 |
Posts /wp-admin/edit.php | 3.41 ▲0.30 | 48.66 ▲3.18 |
Add New Post /wp-admin/post-new.php | 5.65 ▲0.22 | 90.43 ▼570.90 |
Media Library /wp-admin/upload.php | 3.24 ▲0.24 | 33.46 ▲2.43 |
Error log /wp-admin/admin.php?page=atc-admin-error-log-page | 3.21 | 34.32 |
Category mapping /wp-admin/admin.php?page=atc-admin-catmap-page | 3.21 | 35.39 |
Tools /wp-admin/admin.php?page=atc-admin-tools-page | 3.20 | 30.60 |
Settings /wp-admin/admin.php?page=atc-admin-settings-page | 3.20 | 29.21 |
Importation log /wp-admin/admin.php?page=atc-admin-page | 3.21 | 27.15 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 33 new files
Database: 3 new tables, 1 new option
New tables |
---|
wp_atc_log_importation |
wp_atc_category_mapping |
wp_atc_log_error |
New WordPress options |
---|
atc_db_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for AllTheContent
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,757 ▲161 | 15.91 ▲0.30 | 8.23 ▼0.64 | 46.16 ▼1.82 |
Dashboard /wp-admin | 3,027 ▲93 | 6.19 ▼0.04 | 154.99 ▲9.63 | 110.02 ▲2.45 |
Posts /wp-admin/edit.php | 2,793 ▲54 | 2.73 ▲0.02 | 69.93 ▼0.71 | 91.04 ▲1.99 |
Add New Post /wp-admin/post-new.php | 1,750 ▼1,833 | 17.96 ▲3.09 | 381.05 ▼90.90 | 111.83 ▲5.00 |
Media Library /wp-admin/upload.php | 1,864 ▲57 | 5.06 ▲0.02 | 168.24 ▲20.76 | 112.60 ▼1.35 |
Error log /wp-admin/admin.php?page=atc-admin-error-log-page | 1,230 | 2.09 | 57.68 | 64.32 |
Category mapping /wp-admin/admin.php?page=atc-admin-catmap-page | 1,277 | 2.06 | 54.45 | 66.04 |
Tools /wp-admin/admin.php?page=atc-admin-tools-page | 1,122 | 2.10 | 55.26 | 73.76 |
Settings /wp-admin/admin.php?page=atc-admin-settings-page | 1,115 | 2.12 | 55.83 | 79.60 |
Importation log /wp-admin/admin.php?page=atc-admin-page | 1,309 | 2.09 | 66.33 | 73.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=atc-admin-settings-page
- > Notice in wp-content/plugins/allthecontent/admin/pages/SettingsPage.php+245
Trying to access array offset on value of type bool
SRP 0% from 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
Please fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/allthecontent/includes/ATCApi.php
- > /wp-content/plugins/allthecontent/atcml-format.example.php
- 18× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: content in wp-content/plugins/allthecontent/atcml-format.example.php on line 52
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/allthecontent/atcml-format.example.php on line 27
- > PHP Fatal error
Uncaught Error: Call to undefined function getATCImgPageLogo() in wp-content/plugins/allthecontent/admin/pages/templates/error-log.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function getATCImgPageLogo() in wp-content/plugins/allthecontent/admin/pages/templates/importation-log.php:3
- > PHP Notice
Undefined variable: content_text in wp-content/plugins/allthecontent/atcml-format.example.php on line 24
- > PHP Notice
Undefined variable: captions in wp-content/plugins/allthecontent/atcml-format.example.php on line 27
- > PHP Notice
Undefined variable: captions in wp-content/plugins/allthecontent/atcml-format.example.php on line 32
- > PHP Fatal error
Uncaught Error: Call to undefined function getATCImgPageLogo() in wp-content/plugins/allthecontent/admin/pages/templates/category-mapping.php:3
- > PHP Notice
Undefined variable: captions in wp-content/plugins/allthecontent/atcml-format.example.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function getATCImgPageLogo() in wp-content/plugins/allthecontent/admin/pages/templates/category-mapping-addcatmap.php:3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: import, importer, content, fresh content, feeds...
allthecontent/index.php 92% from 13 tests
This is the main PHP file of "AllTheContent" version 0.1.5, 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:
- Main file name: The principal plugin file should be the same as the plugin slug ("allthecontent.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin2,201 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 558 | 804 | 2,116 |
Markdown | 2 | 39 | 0 | 67 |
CSS | 1 | 3 | 0 | 18 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 15.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 2.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 18 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 18 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 170 | |
▷ Static methods | 12 | 7.06% |
▷ Public methods | 130 | 76.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 40 | 23.53% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo-reuters.png | 9.67KB | 6.13KB | ▼ 36.61% |
images/logo-atc-wp.png | 17.77KB | 0.75KB | ▼ 95.77% |
images/logo-atc-wp-white.png | 17.56KB | 0.60KB | ▼ 96.58% |