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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲4.26MB] [CPU: ▼278.55ms] Passed 4 tests
A check of server-side resources used by TwentyFourth WP Scraper
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.18 ▲4.66 | 77.24 ▲24.93 |
Dashboard /wp-admin | 8.20 ▲4.79 | 56.66 ▲19.41 |
Posts /wp-admin/edit.php | 8.20 ▲4.55 | 59.58 ▲21.22 |
Add New Post /wp-admin/post-new.php | 10.02 ▲3.05 | 114.91 ▼1,176.20 |
Media Library /wp-admin/upload.php | 8.20 ▲4.90 | 45.35 ▲21.37 |
Freemius Debug [v.2.3.2] /wp-admin/admin.php?page=freemius | 8.20 | 93.63 |
Server storage [IO: ▲4.73MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 206 new files
Database: no new tables, 4 new options
New WordPress options |
---|
fs_active_plugins |
fs_debug_mode |
fs_gdpr |
fs_accounts |
Browser metrics Passed 4 tests
A check of browser resources used by TwentyFourth WP Scraper
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,955 ▲213 | 15.96 ▼0.05 | 10.31 ▲3.31 | 2.25 ▲0.10 |
Dashboard /wp-admin | 2,953 ▲92 | 6.07 ▼0.06 | 117.74 ▼21.43 | 174.05 ▲11.51 |
Posts /wp-admin/edit.php | 2,751 ▲63 | 3.26 ▲0.02 | 64.62 ▲2.24 | 156.59 ▲11.22 |
Add New Post /wp-admin/post-new.php | 1,776 ▲115 | 22.14 ▲5.01 | 468.95 ▲50.64 | 158.45 ▲8.65 |
Media Library /wp-admin/upload.php | 1,761 ▲63 | 5.55 ▲0.06 | 151.70 ▲11.08 | 208.22 ▲24.22 |
Freemius Debug [v.2.3.2] /wp-admin/admin.php?page=freemius | 1,467 | 2.50 | 57.63 | 118.84 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 4 options in the database
- fs_accounts
- fs_active_plugins
- fs_debug_mode
- fs_gdpr
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means 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
Almost there! Just fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/twentyfourth-wp-scraper/public/partials/twentyfourth-wp-scraper-public-display.php
- > /wp-content/plugins/twentyfourth-wp-scraper/freemius/templates/ajax-loader.php
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/twentyfourth-wp-scraper/admin/ajax.php:25
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/twentyfourth-wp-scraper/freemius/templates/account/partials/addon.php on line 6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/twentyfourth-wp-scraper/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
Uncaught Error: Call to a member function get_slug() on null in wp-content/plugins/twentyfourth-wp-scraper/freemius/templates/account/partials/addon.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function freemius() in wp-content/plugins/twentyfourth-wp-scraper/freemius/templates/partials/network-activation.php:6
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/twentyfourth-wp-scraper/freemius/templates/account/partials/addon.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/twentyfourth-wp-scraper/freemius/templates/account/partials/addon.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'TwentyFourth_WP_Scraper' not found in wp-content/plugins/twentyfourth-wp-scraper/admin/partials/twentyfourth-wp-scraper-admin-display.php:15
- > PHP Notice
Undefined variable: VARS in wp-content/plugins/twentyfourth-wp-scraper/freemius/templates/account/partials/addon.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/twentyfourth-wp-scraper/admin/class-twentyfourth-wp-scraper-admin-ajax.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: scraping
twentyfourth-wp-scraper/twentyfourth-wp-scraper.php Passed 13 tests
"TwentyFourth WP Scraper" version 0.6.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
89 characters long description:
Scrape any website, export as anything including posts, pages, categories, products, etc.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected46,109 lines of code in 158 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 122 | 7,296 | 16,525 | 30,273 |
PO File | 12 | 6,960 | 8,455 | 15,240 |
JavaScript | 7 | 52 | 114 | 304 |
Markdown | 1 | 61 | 0 | 192 |
CSS | 15 | 12 | 16 | 73 |
JSON | 1 | 0 | 0 | 27 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 2,772)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 74.94 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,772.00 |
Average method complexity | 4.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 53 | |
▷ Abstract classes | 2 | 3.77% |
▷ Concrete classes | 51 | 96.23% |
▷ Final classes | 0 | 0.00% |
Methods | 1,160 | |
▷ Static methods | 175 | 15.09% |
▷ Public methods | 809 | 69.74% |
▷ Protected methods | 15 | 1.29% |
▷ Private methods | 336 | 28.97% |
Functions | 100 | |
▷ Named functions | 100 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 122 | |
▷ Global constants | 97 | 79.51% |
▷ Class constants | 25 | 20.49% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/sss-client.png | 3.15KB | 2.85KB | ▼ 9.48% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/sss-client-test.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |