Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/ns-tweet/ns-tweet.php+385
Function create_function() is deprecated
Server metrics [RAM: ▼1.82MB] [CPU: ▼52.55ms] Passed 4 tests
A check of server-side resources used by NS Tweet
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.17 ▼1.29 | 5.93 ▼37.47 |
Dashboard /wp-admin | 2.19 ▼1.11 | 6.26 ▼46.17 |
Posts /wp-admin/edit.php | 2.19 ▼1.17 | 6.26 ▼42.83 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.70 | 6.38 ▼83.72 |
Media Library /wp-admin/upload.php | 2.19 ▼1.04 | 5.60 ▼30.47 |
NetScripter Tweet Settings /wp-admin/plugins.php?page=netscripter-tweet-settings | 2.29 | 6.51 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_netscripter_tweet |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for NS Tweet
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,888 ▲131 | 14.00 ▼0.38 | 6.00 ▲3.86 | 39.74 ▼10.11 |
Dashboard /wp-admin | 2,210 ▲22 | 4.87 ▼0.07 | 100.52 ▼15.21 | 39.80 ▼4.90 |
Posts /wp-admin/edit.php | 2,090 ▼2 | 2.01 ▼0.02 | 35.30 ▼2.73 | 35.21 ▼2.23 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 22.91 ▲4.33 | 654.38 ▲32.46 | 56.96 ▲0.93 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.18 ▼0.02 | 99.31 ▼0.09 | 42.20 ▼1.71 |
NetScripter Tweet Settings /wp-admin/plugins.php?page=netscripter-tweet-settings | 822 | 2.06 | 26.40 | 25.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/ns-tweet/ns-tweet.php+385
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_netscripter_tweet
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/plugins.php?page=netscripter-tweet-settings
- > Deprecated in wp-content/plugins/ns-tweet/ns-tweet.php+385
Function create_function() is deprecated
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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ns-tweet/ns-tweet.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: netscripter, tweet, twitter, tweets, slider...
ns-tweet/ns-tweet.php Passed 13 tests
The main PHP script in "NS Tweet" version 1.0 is automatically included on every request by WordPress
48 characters long description:
Twitter Widget for your Site with Slider option.
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
Good job! No executable or dangerous file extensions detected893 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 125 | 145 | 497 |
CSS | 2 | 16 | 21 | 230 |
JavaScript | 1 | 58 | 18 | 166 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 3.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 4 | 23.53% |
▷ Public methods | 12 | 70.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 29.41% |
Functions | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/trans-bg.png | 0.22KB | 0.14KB | ▼ 34.68% |
assets/images/followme.png | 1.78KB | 1.56KB | ▼ 12.27% |