Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.93ms] Passed 4 tests
Analyzing server-side resources used by Native Gettext for Wordpress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 36.82 ▼4.01 |
Dashboard /wp-admin | 3.35 ▲0.05 | 45.73 ▼3.89 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 47.62 ▼0.61 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 85.33 ▼11.21 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 34.88 ▲2.60 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Native Gettext for Wordpress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.22 ▼1.15 | 1.64 ▲0.03 | 41.20 ▲1.14 |
Dashboard /wp-admin | 2,206 ▲21 | 5.85 ▲0.95 | 107.53 ▲2.31 | 44.03 ▲2.07 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.13 ▲0.12 | 41.76 ▲2.49 | 36.29 ▲5.03 |
Add New Post /wp-admin/post-new.php | 1,535 ▲21 | 23.41 ▲5.67 | 675.66 ▲27.22 | 59.20 ▼3.04 |
Media Library /wp-admin/upload.php | 1,391 ▲9 | 4.31 ▲0.16 | 95.57 ▼6.10 | 42.38 ▼3.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Gettext_Translations' not found in wp-content/plugins/native-gettext/classes/class-native-mo.php:19
- > PHP Fatal error
Uncaught Error: Class 'Gettext_Translations' not found in wp-content/plugins/native-gettext/classes/class-native-mo.php:19
- > PHP Fatal error
Uncaught Error: Class 'Gettext_Translations' not found in wp-content/plugins/native-gettext/classes/class-native-mo.php:19
- > 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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: translation, gettext, performance
native-gettext/native-gettext.php Passed 13 tests
The main PHP script in "Native Gettext for Wordpress" version 1.1.3 is automatically included on every request by WordPress
40 characters long description:
A minimal native gettext implementation.
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
Everything looks great! No dangerous files found in this plugin253 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 65 | 122 | 253 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 17.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 1 | 4.76% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 1 | 20.00% |
▷ Anonymous functions | 4 | 80.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin